public interface IStreamingServer extends IOptionsServer
ATTRIBUTE_STREAM_MAP_KEY, IN_MAP_USE_TAGS_KEY
Modifier and Type | Method and Description |
---|---|
void |
execStreamingMapCommand(java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.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.).
|
addTrust, addTrust, addTrust, execInputStringMapCmdList, execInputStringMapCmdList, execInputStringStreamCmd, execInputStringStreamingMapCmd, execMapCmdList, execQuietMapCmdList, execStreamCmd, getAuthId, getTicketsFilePath, getTrust, getTrustFilePath, getTrusts, getTrusts, getUsageOptions, removeTrust, removeTrust, setAuthTicket, setAuthTicket, setTicketsFilePath, setTrustFilePath, setUsageOptions
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, registerSSOCallback, setAuthTicket, setCharsetName, setClientPath, setCurrentClient, setCurrentServerInfo, setUserName, setWorkingDirectory, supportsSmartMove, supportsUnicode, updateUserGroup
execMapCmdList, execMapCmdList, execMapCmdList, execStreamCmd, execStreamCmdForBuffer, getErrorOrInfoStr, getErrorStr, getInfoStr, handleErrorStr, handleFileErrorStr, isAuthFail, isInfoMessage
setFileAttributes, setFileAttributes, unsetFileAttribute, unsetFileAttributes
createBranchSpec, deleteBranchSpec, deleteBranchSpec, getBranchSpec, getBranchSpec, updateBranchSpec
getBranchSpecs, getBranchSpecs
deletePendingChangelist, deletePendingChangelist, getChangelist, getChangelist
getChangelists, getChangelists, getChangelists
createClient, createTempClient, deleteClient, deleteClient, getClient, getClient, getClientTemplate, getClientTemplate, getClientTemplate, switchClientView, switchStreamView, updateClient, updateClient, updateClient
getClients, getClients
setOrUnsetServerConfigurationValue, showServerConfiguration
deleteCounter, getCounter, getCounter, setCounter, setCounter
getCounters, getCounters, getCounters
getDbSchema
createDepot, deleteDepot, getDepot
getDepots, getDepots
getRepos, getRepos, getRepos
getChangelistDiffs, getChangelistDiffsStream, getChangelistExtendedFiles, getChangelistExtendedFiles, getChangelistFiles, getChangelistFiles, getShelvedFiles, getShelvedFiles
getFileDiffs, getFileDiffs, getFileDiffsStream, getServerFileDiffs
getDirectories, getDirectories
getDiskSpace
duplicateRevisions
getExportRecords, getExportRecords, getStreamingExportRecords
getFileAnnotations, getFileAnnotations
getRevisionHistory, getRevisionHistory
getDepotFiles, getDepotFiles
fixJobs, fixJobs
getFixes, getFixList
getExtendedFiles, getExtendedFiles
getMatchingLines, getMatchingLines
createUserGroup, deleteUserGroup, getUserGroup, updateUserGroup
getUserGroups
getServerInfo
getSubmittedIntegrations, getSubmittedIntegrations
getInterchanges, getInterchanges
getStreamIntegrationStatus
createJob, deleteJob, getJob, updateJob
getJobs, getJobs
getJobSpec
journalWait
deleteKey, getKey, setKey
getKeys
createLabel, deleteLabel, deleteLabel, getLabel, updateLabel
getLabels, getLabels
getLoginStatus, isDontWriteTicket, login, login, login, login, login
logout, logout
getLogTail
getServerProcesses, getServerProcesses
moveFile, moveFile
obliterateFiles
getOpenedFiles, getOpenedFiles
changePassword
getFileContents, getFileContents, getFileContents
deleteProperty, getProperty, setProperty
createProtectionEntries, getProtectionsTable, updateProtectionEntries
getProtectionEntries, getProtectionEntries
reload
renameUser
getReviewChangelists
getReviews, getReviews
searchJobs
getFileSizes
createStream, deleteStream, getStream, getStream, updateStream
getStreams
tagFiles, tagFiles
createTriggerEntries, getTriggerEntries, getTriggersTable, updateTriggerEntries
unload
createUser, createUser, deleteUser, deleteUser, getUser, updateUser, updateUser
getUsers, getUsers
verifyFiles
getGraphListTree
getBlobObject, getCommitObject, getCommitObject, getGraphCommitLogList, getGraphObject
getGraphRevList
getGraphCommitLogList
doGraphReceivePack
getListData, getListData
getGraphShowRefs
getLogin2Status, getLogin2Status, login2, login2, login2CheckAuth, login2InitAuth, login2ListMethods
getSpec, updateSpec, updateSpecString
getLicense, getLimits, getValidServerIPMACAddress, updateLicense
createExtensionConfig, deleteExtension, getExtensionConfig, installExtension, listExtensions, packageExtension, sampleExtension, updateExtensionConfig
getStreamlog
renameClient
void execStreamingMapCommand(java.lang.String cmdName, java.lang.String[] cmdArgs, java.util.Map<java.lang.String,java.lang.Object> inMap, IStreamingCallback callback, int key) throws P4JavaException
IServer
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.
execStreamingMapCommand
in interface IServer
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.P4JavaException
- if an error occurs processing this method and its parameters.