public abstract class AsynchronousCommand extends Object implements org.apache.sshd.server.Command, org.apache.sshd.server.SessionAware
Command implementation that uses a thread to run a command.| Modifier | Constructor and Description |
|---|---|
protected |
AsynchronousCommand(SshCommandFactory.CommandLine cmdLine) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
SshCommandFactory.CommandLine |
getCmdLine() |
protected hudson.model.User |
getCurrentUser() |
org.apache.sshd.server.Environment |
getEnvironment() |
OutputStream |
getErrorStream() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
org.apache.sshd.server.session.ServerSession |
getSession() |
protected abstract int |
run() |
void |
setErrorStream(OutputStream err) |
void |
setExitCallback(org.apache.sshd.server.ExitCallback callback) |
void |
setInputStream(InputStream in) |
void |
setOutputStream(OutputStream out) |
void |
setSession(org.apache.sshd.server.session.ServerSession session) |
void |
start(org.apache.sshd.server.Environment env) |
protected AsynchronousCommand(SshCommandFactory.CommandLine cmdLine)
public void setInputStream(InputStream in)
setInputStream in interface org.apache.sshd.server.Commandpublic void setOutputStream(OutputStream out)
setOutputStream in interface org.apache.sshd.server.Commandpublic void setErrorStream(OutputStream err)
setErrorStream in interface org.apache.sshd.server.Commandpublic InputStream getInputStream()
public OutputStream getOutputStream()
public OutputStream getErrorStream()
public SshCommandFactory.CommandLine getCmdLine()
public void setExitCallback(org.apache.sshd.server.ExitCallback callback)
setExitCallback in interface org.apache.sshd.server.Commandpublic org.apache.sshd.server.session.ServerSession getSession()
public void setSession(org.apache.sshd.server.session.ServerSession session)
setSession in interface org.apache.sshd.server.SessionAwareprotected hudson.model.User getCurrentUser()
public org.apache.sshd.server.Environment getEnvironment()
public void start(org.apache.sshd.server.Environment env)
throws IOException
start in interface org.apache.sshd.server.CommandIOExceptionpublic void destroy()
destroy in interface org.apache.sshd.server.CommandCopyright © 2004-2012. All Rights Reserved.