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.CommandLifecycle
- Direct Known Subclasses:
ReceiveSlaveMode
,UploadArchive
public abstract class AbstractGitCommand 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 String[]
extraParameters
protected Project
project
protected Project.NameKey
projectName
protected ProjectState
projectState
protected org.eclipse.jgit.lib.Repository
repo
protected SshSession
session
-
Fields inherited from class com.google.gerrit.sshd.BaseCommand
cleanup, ENC, err, exit, in, out, STATUS_NOT_ADMIN, user
-
-
Constructor Summary
Constructors Constructor Description AbstractGitCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
runImpl()
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
-
projectState
protected ProjectState projectState
-
session
@Inject protected SshSession session
-
repo
protected org.eclipse.jgit.lib.Repository repo
-
projectName
protected Project.NameKey projectName
-
project
protected Project project
-
extraParameters
protected String[] extraParameters
-
-
Method Detail
-
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
-
-