Package com.google.gerrit.sshd
Class SshCommand
- java.lang.Object
-
- com.google.gerrit.sshd.BaseCommand
-
- com.google.gerrit.sshd.SshCommand
-
- 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
- Direct Known Subclasses:
BanCommitCommand
,CheckProjectAccessCommand
,ConvertRefStorage
,CreateBranchCommand
,ExternalIdCaseSensitivityMigrationCommand
,GarbageCollectionCommand
,IndexActivateCommand
,IndexStartCommand
,LfsPluginAuthCommand
,ListGroupsCommand
,ListLoggingLevelCommand
,ListMembersCommand
,ListProjectsCommand
,LsUserRefs
,PluginAdminSshCommand
,PluginLsCommand
,Query
,ReloadConfig
,RenameGroupCommand
,ReviewCommand
,SetHeadCommand
,SetLoggingLevelCommand
,SetMembersCommand
,SetReviewersCommand
,SetTopicCommand
public abstract class SshCommand extends BaseCommand
-
-
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 Modifier and Type Field Description protected PrintWriter
stderr
protected PrintWriter
stdout
-
Fields inherited from class com.google.gerrit.sshd.BaseCommand
cleanup, dynamicBeans, ENC, err, exit, in, injector, out, STATUS_NOT_ADMIN, user
-
-
Constructor Summary
Constructors Constructor Description SshCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
run()
void
start(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env)
-
Methods inherited from class com.google.gerrit.sshd.BaseCommand
destroy, die, die, die, enableGracefulStop, getArguments, getName, getPluginName, getTaskDescription, getTrimmedArguments, newCmdLineParser, onExit, parseCommandLine, parseCommandLine, provideStateTo, setArguments, setErrorStream, setExitCallback, setInputStream, setOutputStream, startThread, toPrintWriter, usage, writeError
-
-
-
-
Field Detail
-
stdout
protected PrintWriter stdout
-
stderr
protected PrintWriter stderr
-
-
Method Detail
-
start
public void start(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env) throws IOException
- Throws:
IOException
-
run
protected abstract void run() throws BaseCommand.UnloggedFailure, BaseCommand.Failure, Exception
-
-