Package com.google.gerrit.sshd
Class AliasCommand
java.lang.Object
com.google.gerrit.sshd.BaseCommand
com.google.gerrit.sshd.AliasCommand
- All Implemented Interfaces:
org.apache.sshd.server.command.Command
,org.apache.sshd.server.command.CommandDirectErrorStreamAware
,org.apache.sshd.server.command.CommandDirectInputStreamAware
,org.apache.sshd.server.command.CommandDirectOutputStreamAware
,org.apache.sshd.server.command.CommandDirectStreamsAware
,org.apache.sshd.server.command.CommandLifecycle
Command that executes some other command.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.sshd.BaseCommand
BaseCommand.CommandRunnable, BaseCommand.Failure, BaseCommand.ProjectCommandRunnable, BaseCommand.UnloggedFailure
-
Field Summary
Fields inherited from class com.google.gerrit.sshd.BaseCommand
cleanup, dynamicBeans, ENC, err, exit, in, injector, out, STATUS_NOT_ADMIN, user
-
Method Summary
Methods inherited from class com.google.gerrit.sshd.BaseCommand
die, die, die, enableGracefulStop, getArguments, getName, getPluginName, getSession, getTaskDescription, getTrimmedArguments, newCmdLineParser, onExit, parseCommandLine, parseCommandLine, provideStateTo, setArguments, setErrorStream, setExitCallback, setForceTracing, setInputStream, setOutputStream, setTraceId, startThread, toPrintWriter, usage, writeError
-
Method Details
-
start
public void start(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env) throws IOException - Throws:
IOException
-
destroy
public void destroy(org.apache.sshd.server.channel.ChannelSession channel) - Specified by:
destroy
in interfaceorg.apache.sshd.server.command.CommandLifecycle
- Overrides:
destroy
in classBaseCommand
-