public class ScpCommand extends ExecutableCommand implements java.lang.Runnable
com.maverick.sshd.SshDaemon#configure(com.maverick.sshd.ConfigurationContext)
method using the following code
context.addCommand("scp", ScpCommand.class);
session, STILL_ACTIVE| Constructor and Description |
|---|
ScpCommand() |
ScpCommand(java.lang.String currentDirectory)
Creates a new ScpCommand object.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeSession() |
boolean |
createProcess(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> environment)
Parse the SCP command line and configure the command ready for execution.
|
int |
getExitCode()
Get the exit code for this process.
|
void |
kill()
Called when channel is closing
|
void |
onStart()
Start the process.
|
void |
run() |
allocatePseudoTerminal, getInputStream, getOutputStream, getSession, getStderrOutputStream, init, startpublic ScpCommand()
public ScpCommand(java.lang.String currentDirectory)
public boolean createProcess(java.lang.String[] args,
java.util.Map<java.lang.String,java.lang.String> environment)
createProcess in class ExecutableCommandcommand - environment - public int getExitCode()
ExecutableCommandExecutableCommand.STILL_ACTIVE.getExitCode in class ExecutableCommandpublic void kill()
kill in class ExecutableCommandpublic void onStart()
onStart in class ExecutableCommandjava.io.IOExceptionpublic void run()
run in interface java.lang.Runnableprotected void closeSession()
Copyright © 2022. All rights reserved.