Modifier and Type | Field and Description |
---|---|
protected RpcConnection |
NtsServerImpl.rpcConnection |
Modifier and Type | Method and Description |
---|---|
RpcConnection |
CommandEnv.getRpcConnection() |
RpcConnection |
NtsServerImpl.getRpcConnection() |
Modifier and Type | Method and Description |
---|---|
protected void |
RpcServer.checkFingerprint(RpcConnection rpcConnection)
Check the fingerprint of the Perforce server SSL connection
|
void |
CommandEnv.setRpcConnection(RpcConnection rpcConnection) |
void |
NtsServerImpl.setRpcConnection(RpcConnection rpcConnection) |
protected ExternalEnv |
OneShotServerImpl.setupCmd(RpcPacketDispatcher dispatcher,
RpcConnection rpcConnection,
ProtocolCommand protocolSpecs,
java.lang.String cmdName,
java.lang.String[] cmdArgs,
java.util.Map<java.lang.String,java.lang.Object> inMap,
boolean ignoreCallbacks,
int cmdCallBackKey,
boolean isStream)
Factors out the command setup that's common to stream and map commands.
|
Constructor and Description |
---|
CommandEnv(RpcServer server,
RpcCmdSpec cmdSpec,
RpcConnection rpcConnection,
ProtocolCommand protocolSpecs,
java.util.Map<java.lang.String,java.lang.Object> serverProtocolSpecsMap,
IProgressCallback progressCallback,
int cmdCallBackKey,
boolean syncInPlace,
boolean nonCheckedSyncs) |
Modifier and Type | Method and Description |
---|---|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.checkFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
The infamous checkFile omnibus method, used to, well, check files
on the Perforce client side.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.chmodFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Change the r/w (etc.) mode of a file locally.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientAck(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Respond back to the server with what amounts to a yes / no response
in the face of errors or success.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientMerge.clientCloseMerge(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Close the merge write (above) and act on the results.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientCrypto(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Process the client-Crypto command from the Perforce server.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientInputData(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Get some requested data (typically something like a submit form) from
somewhere (typically a map passed in from the upper levels of the API) and
pass it back to the server, properly munged.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientMerge.clientOpenMerge3(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap,
boolean twoWayMerge)
Implement a non-interactive version of the three-way client-side merge.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientPrompt(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Prompt the end-user (i.e.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientReceiveFiles(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientSetPassword(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Set the client-side password in response to a Perforce server command
telling us to do just that, usually as a result of an earlier
successful login attempt in the same session.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientUserInteraction.clientSingleSignon(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Implements the client-side of the Perforce single sign on (SSO) protocol.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientMerge.clientWriteMerge(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Write merge data to the client if necessary.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.closeFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Close a file that was opened earlier for writing.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.deleteFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.moveFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Move a file from one location to another.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.openFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Open a client file for writing.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.reconcileAdd(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Reconcile add confirm - scans the directory (local syntax) and returns
files in the directory using the full path.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.reconcileEdit(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
"inquire" about file, for 'p4 reconcile'
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.reconcileFlush(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Reconcile flush - remove the skip add files map from the reconcile handler.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSendFile.sendFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Send a file's contents back to the Perforce server.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.writeBinary(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
A specialised method to handle the client-OutputBinary command.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.writeFile(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Write file contents to the target file.
|
protected RpcPacketDispatcher.RpcPacketDispatcherResult |
ClientSystemFileCommands.writeText(RpcConnection rpcConnection,
CommandEnv cmdEnv,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Handles the client-OutputText command.
|
Modifier and Type | Method and Description |
---|---|
void |
FlowControl.processFlushCommandFromServer(RpcConnection rpcConnection,
RpcFunctionSpec funcSpec,
java.util.Map<java.lang.String,java.lang.Object> resultsMap)
Given a map passed-in from the main dispatcher that represents
a flush command received from the Perforce server, respond
appropriately.
|
void |
FlowControl.sendFlush1(RpcConnection rpcConnection,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
void |
FlowControl.sendFlush2(RpcConnection rpcConnection,
java.util.Map<java.lang.String,java.lang.Object> resultsMap) |
void |
ProtocolFunctionDispatcher.sendRelease2(RpcConnection rpcConnection) |
Modifier and Type | Method and Description |
---|---|
void |
RpcPacketDispatcher.shutdown(RpcConnection rpcConnection)
Attempt to cleanly shut down the dispatcher; this should involve
sending a release2 packet, but this is not always possible, and
we suppress any resulting errors.
|
Modifier and Type | Class and Description |
---|---|
class |
RpcStreamConnection
Socket stream I/O based implementation of the RpcConnection class.
|
Constructor and Description |
---|
RpcOutputStream(RpcPerforceFile file,
RpcConnection rpcConnection,
boolean useLocalDigester) |
Copyright © 2018 Perforce Software. All Rights Reserved.