| Modifier and Type | Field and Description |
|---|---|
| private final ChannelSession | |
| protected IOException | |
| protected ScpTransferEventListener | |
| protected final ScpFileOpener | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected String | |
| protected final int | |
| protected final int |
| Access | Constructor and Description |
|---|---|
| public | ScpCommand(ChannelSession
The channelSession, String ChannelSession through which the command was receivedThe command to be executed command, CloseableExecutorService An executorService, int CloseableExecutorService to be used when
start(ChannelSession, Environment)-ing execution. If null an ad-hoc
single-threaded service is created and used.Size (in bytes) of buffer to use when sending files sendSize, int Size (in bytes) of buffer to use when receiving files receiveSize, ScpFileOpener fileOpener, ScpTransferEventListener An eventListener)ScpTransferEventListener - may be null
|
| Modifier and Type | Method and Description |
|---|---|
| public ChannelSession | |
| public void | |
| public void | start(ChannelSession
The channel, Environment ChannelSession through which the command has been receivedThe env)EnvironmentOverrides org. Implements org. Starts the command execution. |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| protected void |
| channelSession | back to summary |
|---|---|
| private final ChannelSession channelSession | |
| error | back to summary |
|---|---|
| protected IOException error | |
| listener | back to summary |
|---|---|
| protected ScpTransferEventListener listener | |
| opener | back to summary |
|---|---|
| protected final ScpFileOpener opener | |
| optD | back to summary |
|---|---|
| protected boolean optD | |
| optF | back to summary |
|---|---|
| protected boolean optF | |
| optP | back to summary |
|---|---|
| protected boolean optP | |
| optR | back to summary |
|---|---|
| protected boolean optR | |
| optT | back to summary |
|---|---|
| protected boolean optT | |
| path | back to summary |
|---|---|
| protected String path | |
| receiveBufferSize | back to summary |
|---|---|
| protected final int receiveBufferSize | |
| sendBufferSize | back to summary |
|---|---|
| protected final int sendBufferSize | |
| ScpCommand | back to summary |
|---|---|
public ScpCommand(ChannelSession channelSession, String command, CloseableExecutorService executorService, int sendSize, int receiveSize, ScpFileOpener fileOpener, ScpTransferEventListener eventListener)
| |
| getServerChannelSession | back to summary |
|---|---|
| public ChannelSession getServerChannelSession() Implements org.
| |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| start | back to summary |
|---|---|
| public void start(ChannelSession channel, Environment env) throws IOException Overrides org. Implements org. Doc from org. Starts the command execution. All streams must have been set before calling this method. The command
should implement
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| writeCommandResponseMessage | back to summary |
|---|---|
| protected void writeCommandResponseMessage(String command, int exitValue, String exitMessage) throws IOException | |