Package com.google.gerrit.sshd
Class AbstractGitCommand
java.lang.Object
com.google.gerrit.sshd.BaseCommand
com.google.gerrit.sshd.AbstractGitCommand
- 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:
ReceiveSlaveMode
,UploadArchive
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.sshd.BaseCommand
BaseCommand.CommandRunnable, BaseCommand.Failure, BaseCommand.ProjectCommandRunnable, BaseCommand.UnloggedFailure
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String[]
protected Project
protected Project.NameKey
protected ProjectState
protected org.eclipse.jgit.lib.Repository
protected SshSession
Fields inherited from class com.google.gerrit.sshd.BaseCommand
cleanup, dynamicBeans, ENC, err, exit, in, injector, out, STATUS_NOT_ADMIN, user
-
Constructor Summary
Constructors -
Method Summary
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 Details
-
projectState
-
session
-
repo
protected org.eclipse.jgit.lib.Repository repo -
projectName
-
project
-
extraParameters
-
-
Constructor Details
-
AbstractGitCommand
public AbstractGitCommand()
-
-
Method Details
-
start
public void start(org.apache.sshd.server.channel.ChannelSession channel, org.apache.sshd.server.Environment env) -
runImpl
protected abstract void runImpl() throws IOException, PermissionBackendException, BaseCommand.Failure
-