Interface IStreamingServer
- All Superinterfaces:
IAttributeDelegator,IBranchDelegator,IBranchesDelegator,IChangeDelegator,IChangesDelegator,IClientDelegator,IClientsDelegator,ICommitDelegator,IConfigureDelegator,ICounterDelegator,ICountersDelegator,IDBSchemaDelegator,IDepotDelegator,IDepotsDelegator,IDescribeDelegator,IDiff2Delegator,IDirsDelegator,IDiskspaceDelegator,IDuplicateDelegator,IExportDelegator,IExtensionDelegator,IFileAnnotateDelegator,IFileLogDelegator,IFilesDelegator,IFixDelegator,IFixesDelegator,IFstatDelegator,IGraphCommitLogDelegator,IGraphListTreeDelegator,IGraphReceivePackDelegator,IGraphRevListDelegator,IGraphShowRefDelegator,IGrepDelegator,IGroupDelegator,IGroupsDelegator,IHelixCommandExecutor,IInfoDelegator,IIntegratedDelegator,IInterchangesDelegator,IJobDelegator,IJobsDelegator,IJobSpecDelegator,IJournalWaitDelegator,IKeyDelegator,IKeysDelegator,ILabelDelegator,ILabelsDelegator,ILicenseDelegator,IListDelegator,ILogin2Delegator,ILoginDelegator,ILogoutDelegator,ILogTailDelegator,IMonitorDelegator,IMoveDelegator,IObliterateDelegator,IOpenedDelegator,IOptionsServer,IPasswdDelegator,IPrintDelegator,IPropertyDelegator,IProtectDelegator,IProtectsDelegator,IReloadDelegator,IRenameClientDelegator,IRenameUserDelegator,IReposDelegator,IReviewDelegator,IReviewsDelegator,ISearchDelegator,IServer,ISizesDelegator,ISpecDelegator,IStatDelegator,IStreamDelegator,IStreamlogDelegator,IStreamsDelegator,ITagDelegator,ITriggersDelegator,IUnloadDelegator,IUserDelegator,IUsersDelegator,IVerifyDelegator
-
Field Summary
Fields inherited from interface com.perforce.p4java.server.IServer
ATTRIBUTE_STREAM_MAP_KEY, IN_MAP_USE_TAGS_KEY -
Method Summary
Modifier and TypeMethodDescriptionvoidexecStreamingMapCommand(String cmdName, String[] cmdArgs, Map<String, Object> inMap, IStreamingCallback callback, int key) Issue a streaming map command to the Perforce server, using an optional map for any input expected by the server (such as label or job specs, etc.).Methods inherited from interface com.perforce.p4java.server.delegator.IAttributeDelegator
setFileAttributes, setFileAttributes, unsetFileAttribute, unsetFileAttributesMethods inherited from interface com.perforce.p4java.server.delegator.IBranchDelegator
createBranchSpec, deleteBranchSpec, deleteBranchSpec, getBranchSpec, getBranchSpec, updateBranchSpecMethods inherited from interface com.perforce.p4java.server.delegator.IBranchesDelegator
getBranchSpecs, getBranchSpecsMethods inherited from interface com.perforce.p4java.server.delegator.IChangeDelegator
deletePendingChangelist, deletePendingChangelist, getChangelist, getChangelistMethods inherited from interface com.perforce.p4java.server.delegator.IChangesDelegator
getChangelists, getChangelists, getChangelistsMethods inherited from interface com.perforce.p4java.server.delegator.IClientDelegator
createClient, createTempClient, deleteClient, deleteClient, getClient, getClient, getClientTemplate, getClientTemplate, getClientTemplate, switchClientView, switchStreamView, updateClient, updateClient, updateClientMethods inherited from interface com.perforce.p4java.server.delegator.IClientsDelegator
getClients, getClientsMethods inherited from interface com.perforce.p4java.server.delegator.ICommitDelegator
getBlobObject, getCommitObject, getCommitObject, getGraphCommitLogList, getGraphObjectMethods inherited from interface com.perforce.p4java.server.delegator.IConfigureDelegator
setOrUnsetServerConfigurationValue, showServerConfigurationMethods inherited from interface com.perforce.p4java.server.delegator.ICounterDelegator
deleteCounter, getCounter, getCounter, setCounter, setCounterMethods inherited from interface com.perforce.p4java.server.delegator.ICountersDelegator
getCounters, getCounters, getCountersMethods inherited from interface com.perforce.p4java.server.delegator.IDBSchemaDelegator
getDbSchemaMethods inherited from interface com.perforce.p4java.server.delegator.IDepotDelegator
createDepot, deleteDepot, getDepotMethods inherited from interface com.perforce.p4java.server.delegator.IDepotsDelegator
getDepots, getDepotsMethods inherited from interface com.perforce.p4java.server.delegator.IDescribeDelegator
getChangelistDiffs, getChangelistDiffsStream, getChangelistExtendedFiles, getChangelistExtendedFiles, getChangelistFiles, getChangelistFiles, getShelvedFiles, getShelvedFilesMethods inherited from interface com.perforce.p4java.server.delegator.IDiff2Delegator
getFileDiffs, getFileDiffs, getFileDiffsStream, getServerFileDiffsMethods inherited from interface com.perforce.p4java.server.delegator.IDirsDelegator
getDirectories, getDirectoriesMethods inherited from interface com.perforce.p4java.server.delegator.IDiskspaceDelegator
getDiskSpaceMethods inherited from interface com.perforce.p4java.server.delegator.IDuplicateDelegator
duplicateRevisionsMethods inherited from interface com.perforce.p4java.server.delegator.IExportDelegator
getExportRecords, getExportRecords, getStreamingExportRecordsMethods inherited from interface com.perforce.p4java.server.delegator.IExtensionDelegator
createExtensionConfig, deleteExtension, getExtensionConfig, installExtension, listExtensions, packageExtension, sampleExtension, updateExtensionConfigMethods inherited from interface com.perforce.p4java.server.delegator.IFileAnnotateDelegator
getFileAnnotations, getFileAnnotationsMethods inherited from interface com.perforce.p4java.server.delegator.IFileLogDelegator
getRevisionHistory, getRevisionHistoryMethods inherited from interface com.perforce.p4java.server.delegator.IFilesDelegator
getDepotFiles, getDepotFilesMethods inherited from interface com.perforce.p4java.server.delegator.IFixDelegator
fixJobs, fixJobsMethods inherited from interface com.perforce.p4java.server.delegator.IFixesDelegator
getFixes, getFixListMethods inherited from interface com.perforce.p4java.server.delegator.IFstatDelegator
getExtendedFiles, getExtendedFilesMethods inherited from interface com.perforce.p4java.server.delegator.IGraphCommitLogDelegator
getGraphCommitLogListMethods inherited from interface com.perforce.p4java.server.delegator.IGraphListTreeDelegator
getGraphListTreeMethods inherited from interface com.perforce.p4java.server.delegator.IGraphReceivePackDelegator
doGraphReceivePackMethods inherited from interface com.perforce.p4java.server.delegator.IGraphRevListDelegator
getGraphRevListMethods inherited from interface com.perforce.p4java.server.delegator.IGraphShowRefDelegator
getGraphShowRefsMethods inherited from interface com.perforce.p4java.server.delegator.IGrepDelegator
getMatchingLines, getMatchingLinesMethods inherited from interface com.perforce.p4java.server.delegator.IGroupDelegator
createUserGroup, deleteUserGroup, getUserGroup, updateUserGroupMethods inherited from interface com.perforce.p4java.server.delegator.IGroupsDelegator
getUserGroupsMethods inherited from interface com.perforce.p4java.server.IHelixCommandExecutor
execMapCmdList, execMapCmdList, execMapCmdList, execStreamCmd, execStreamCmdForBuffer, getErrorOrInfoStr, getErrorStr, getInfoStr, handleErrorStr, handleFileErrorStr, isAuthFail, isInfoMessageMethods inherited from interface com.perforce.p4java.server.delegator.IInfoDelegator
getServerInfoMethods inherited from interface com.perforce.p4java.server.delegator.IIntegratedDelegator
getSubmittedIntegrations, getSubmittedIntegrationsMethods inherited from interface com.perforce.p4java.server.delegator.IInterchangesDelegator
getInterchanges, getInterchangesMethods inherited from interface com.perforce.p4java.server.delegator.IJobDelegator
createJob, deleteJob, getJob, updateJobMethods inherited from interface com.perforce.p4java.server.delegator.IJobsDelegator
getJobs, getJobsMethods inherited from interface com.perforce.p4java.server.delegator.IJobSpecDelegator
getJobSpecMethods inherited from interface com.perforce.p4java.server.delegator.IJournalWaitDelegator
journalWaitMethods inherited from interface com.perforce.p4java.server.delegator.IKeyDelegator
deleteKey, getKey, setKey, setMultipleKeyValuePairMethods inherited from interface com.perforce.p4java.server.delegator.IKeysDelegator
getKeysMethods inherited from interface com.perforce.p4java.server.delegator.ILabelDelegator
createLabel, deleteLabel, deleteLabel, getLabel, updateLabelMethods inherited from interface com.perforce.p4java.server.delegator.ILabelsDelegator
getLabels, getLabelsMethods inherited from interface com.perforce.p4java.server.delegator.ILicenseDelegator
getLicense, getLimits, getValidServerIPMACAddress, updateLicenseMethods inherited from interface com.perforce.p4java.impl.mapbased.server.cmd.IListDelegator
getListData, getListDataMethods inherited from interface com.perforce.p4java.server.delegator.ILogin2Delegator
getLogin2Status, getLogin2Status, login2, login2, login2CheckAuth, login2InitAuth, login2ListMethodsMethods inherited from interface com.perforce.p4java.server.delegator.ILoginDelegator
getLoginStatus, isDontWriteTicket, login, login, login, login, loginMethods inherited from interface com.perforce.p4java.server.delegator.ILogoutDelegator
logout, logoutMethods inherited from interface com.perforce.p4java.server.delegator.ILogTailDelegator
getLogTailMethods inherited from interface com.perforce.p4java.server.delegator.IMonitorDelegator
getServerProcesses, getServerProcessesMethods inherited from interface com.perforce.p4java.server.delegator.IMoveDelegator
moveFile, moveFile, moveFileMethods inherited from interface com.perforce.p4java.server.delegator.IObliterateDelegator
obliterateFilesMethods inherited from interface com.perforce.p4java.server.delegator.IOpenedDelegator
getOpenedFiles, getOpenedFilesMethods inherited from interface com.perforce.p4java.server.IOptionsServer
addTrust, addTrust, addTrust, execInputStringMapCmdList, execInputStringMapCmdList, execInputStringStreamCmd, execInputStringStreamingMapCmd, execMapCmdList, execQuietMapCmdList, execStreamCmd, getAuthId, getGlobalOptions, getTicketsFilePath, getTrust, getTrustFilePath, getTrusts, getTrusts, getUsageOptions, removeTrust, removeTrust, setAuthTicket, setAuthTicket, setGlobalOptions, setTicketsFilePath, setTrustFilePath, setUsageOptionsMethods inherited from interface com.perforce.p4java.server.delegator.IPasswdDelegator
changePasswordMethods inherited from interface com.perforce.p4java.server.delegator.IPrintDelegator
getFileContents, getFileContents, getFileContentsMethods inherited from interface com.perforce.p4java.server.delegator.IPropertyDelegator
deleteProperty, getProperty, setPropertyMethods inherited from interface com.perforce.p4java.server.delegator.IProtectDelegator
createProtectionEntries, getProtectionsTable, updateProtectionEntriesMethods inherited from interface com.perforce.p4java.server.delegator.IProtectsDelegator
getProtectionEntries, getProtectionEntriesMethods inherited from interface com.perforce.p4java.server.delegator.IReloadDelegator
reloadMethods inherited from interface com.perforce.p4java.server.delegator.IRenameClientDelegator
renameClientMethods inherited from interface com.perforce.p4java.server.delegator.IRenameUserDelegator
renameUserMethods inherited from interface com.perforce.p4java.server.delegator.IReposDelegator
getRepos, getRepos, getReposMethods inherited from interface com.perforce.p4java.server.delegator.IReviewDelegator
getReviewChangelistsMethods inherited from interface com.perforce.p4java.server.delegator.IReviewsDelegator
getReviews, getReviewsMethods inherited from interface com.perforce.p4java.server.delegator.ISearchDelegator
searchJobsMethods inherited from interface com.perforce.p4java.server.IServer
connect, createUserGroup, deleteUserGroup, disconnect, execInputStringMapCmd, execInputStringStreamingMapComd, execMapCmd, execQuietMapCmd, execQuietStreamCmd, execStreamingMapCommand, getAuthTicket, getAuthTicket, getAuthTicket, getChangelistDiffs, getCharsetName, getCommitFiles, getCurrentClient, getCurrentServerInfo, getGenericCode, getInterchanges, getInterchanges, getKnownCharsets, getProperties, getServerVersion, getServerVersionNumber, getSeverityCode, getStatus, getUserGroups, getUserName, getWorkingDirectory, isCaseSensitive, isConnected, isLoginNotRequired, registerBrowserCallback, registerCallback, registerProgressCallback, registerProgressCallback, registerSSOCallback, setAuthTicket, setCharsetName, setClientPath, setCurrentClient, setCurrentServerInfo, setUserName, setWorkingDirectory, supportsSmartMove, supportsUnicode, updateUserGroupMethods inherited from interface com.perforce.p4java.server.delegator.ISizesDelegator
getFileSizesMethods inherited from interface com.perforce.p4java.server.delegator.ISpecDelegator
getSpec, updateSpec, updateSpecStringMethods inherited from interface com.perforce.p4java.server.delegator.IStatDelegator
getStreamIntegrationStatusMethods inherited from interface com.perforce.p4java.server.delegator.IStreamDelegator
convertSparseStream, createStream, deleteStream, getStream, getStream, updateStreamMethods inherited from interface com.perforce.p4java.server.delegator.IStreamlogDelegator
getStreamlogMethods inherited from interface com.perforce.p4java.server.delegator.IStreamsDelegator
getStreamsMethods inherited from interface com.perforce.p4java.server.delegator.ITagDelegator
tagFiles, tagFilesMethods inherited from interface com.perforce.p4java.server.delegator.ITriggersDelegator
createTriggerEntries, getTriggerEntries, getTriggersTable, updateTriggerEntriesMethods inherited from interface com.perforce.p4java.server.delegator.IUnloadDelegator
unloadMethods inherited from interface com.perforce.p4java.server.delegator.IUserDelegator
createUser, createUser, deleteUser, deleteUser, getUser, updateUser, updateUserMethods inherited from interface com.perforce.p4java.server.delegator.IUsersDelegator
getUsers, getUsersMethods inherited from interface com.perforce.p4java.server.delegator.IVerifyDelegator
verifyFiles
-
Method Details
-
execStreamingMapCommand
void execStreamingMapCommand(String cmdName, String[] cmdArgs, Map<String, Object> inMap, IStreamingCallback callback, int key) throws P4JavaExceptionDescription copied from interface:IServerIssue a streaming map command to the Perforce server, using an optional map for any input expected by the server (such as label or job specs, etc.).Streaming commands allow users to get each result from a suitably-issued command as it comes in from the server, rather than waiting for the entire command method to complete (and getting the results back as a completed List or Map or whatever).
The results are sent to the user using the IStreamingCallback handleResult method; see the IStreamingCallback Javadoc for details. The payload passed to handleResult is usually the raw map gathered together deep in the RPC protocol layer, and the user is assumed to have the knowledge and technology to be able to parse it and use it suitably in much the same way as a user unpacks or processes the results from the other low-level exec methods like execMapCommand.
NOTE: 'streaming' here has nothing at all to do with Perforce 'streams', which are (or will be) implemented elsewhere.
- Specified by:
execStreamingMapCommandin interfaceIServer- Parameters:
cmdName- the command to be issued; must be non-null, and correspond to a Perforce command recognized by P4Java and defined in CmdSpec.cmdArgs- the array of command arguments (options and file arguments, etc.) to be sent to the Perforce server. These must be in the form used by the corresponding p4 command line interpreter. Ignored if null.inMap- an optional map to be sent to the server as standard input, using the Python map format (-G) form. You must remember to issue the relevant command-specific option to enable this if needed.callback- a non-null IStreamingCallback to be used to process the incoming results.key- an opaque integer key that is passed to the IStreamingCallback callback methods to identify the action as being associated with this specific call.- Throws:
P4JavaException- if an error occurs processing this method and its parameters.
-