public abstract class AbstractRemoteSshCommand
extends org.jenkinsci.main.modules.sshd.AsynchronousCommand
| Modifier and Type | Field and Description |
|---|---|
protected org.kohsuke.ajaxterm.ProcessWithPty |
proc |
| Constructor and Description |
|---|
AbstractRemoteSshCommand(org.jenkinsci.main.modules.sshd.SshCommandFactory.CommandLine cmdLine) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
configure(ProcessWithPtyLauncher pb)
Configures how/where the process is launched.
|
protected int |
die(String msg) |
protected PrintStream |
getErrorPrintStream()
When the terminal is allocated, I discovered that the linux SSH client (at least)
sends the terminal mode ONLCR to 1, and expects us to send back CR+LF instead of just NL.
|
protected abstract int |
main(List<String> args) |
protected int |
run() |
protected int |
run(List<String> args)
Runs the specified commands and
pumps the stdin/stdout/stderr between
proc and the SSH client. |
void |
start(org.apache.sshd.server.Environment env)
Pass along the signal from the client to the child process.
|
public AbstractRemoteSshCommand(org.jenkinsci.main.modules.sshd.SshCommandFactory.CommandLine cmdLine)
public void start(org.apache.sshd.server.Environment env)
throws IOException
start in interface org.apache.sshd.server.Commandstart in class org.jenkinsci.main.modules.sshd.AsynchronousCommandIOExceptionprotected PrintStream getErrorPrintStream()
protected int die(String msg)
protected int run(List<String> args) throws IOException, InterruptedException
proc and the SSH client.IOExceptionInterruptedExceptionprotected abstract void configure(ProcessWithPtyLauncher pb) throws IOException, InterruptedException
IOExceptionInterruptedExceptionprotected int run()
run in class org.jenkinsci.main.modules.sshd.AsynchronousCommandprotected abstract int main(List<String> args) throws IOException, InterruptedException, org.kohsuke.args4j.CmdLineException
IOExceptionInterruptedExceptionorg.kohsuke.args4j.CmdLineExceptionCopyright © 2004-2013. All Rights Reserved.