public abstract class AbstractTunnelCommand
extends org.jenkinsci.main.modules.sshd.AsynchronousCommand
To implement a subtype,
run() method and parse command line options and arguments
that define the context.
getCommandFactory() and getShellFactory() to
run a command and shell for the tunneled SSH sessions. This is where you refer
to the parsed context information.
| Constructor and Description |
|---|
AbstractTunnelCommand(org.jenkinsci.main.modules.sshd.SshCommandFactory.CommandLine cmdLine) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.apache.sshd.server.CommandFactory |
getCommandFactory() |
protected org.apache.sshd.server.FileSystemView |
getFileSystemFactory()
Override this method to add sftp support
|
protected abstract org.apache.sshd.common.Factory<org.apache.sshd.server.Command> |
getShellFactory() |
protected int |
run()
Turn the connection over into another nested SSH session.
|
public AbstractTunnelCommand(org.jenkinsci.main.modules.sshd.SshCommandFactory.CommandLine cmdLine)
protected int run()
throws Exception
run in class org.jenkinsci.main.modules.sshd.AsynchronousCommandExceptionprotected abstract org.apache.sshd.server.CommandFactory getCommandFactory()
protected abstract org.apache.sshd.common.Factory<org.apache.sshd.server.Command> getShellFactory()
protected org.apache.sshd.server.FileSystemView getFileSystemFactory()
Copyright © 2004-2013. All Rights Reserved.