Class GitPackCommand
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.server.command.AbstractCommandSupport
org.apache.sshd.server.command.AbstractFileSystemCommand
org.apache.sshd.git.AbstractGitCommand
org.apache.sshd.git.pack.GitPackCommand
- All Implemented Interfaces:
Runnable, org.apache.sshd.common.file.FileSystemAware, org.apache.sshd.common.session.SessionContextHolder, org.apache.sshd.common.session.SessionHolder<org.apache.sshd.server.session.ServerSession>, org.apache.sshd.common.util.threads.ExecutorServiceCarrier, GitLocationResolverCarrier, 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, org.apache.sshd.server.session.ServerSessionAware, org.apache.sshd.server.session.ServerSessionHolder
TODO Add javadoc
-
Field Summary
FieldsFields inherited from class AbstractGitCommand
CHAR, DELIMITER, ENDQUOTE, rootDirResolver, STARTQUOTEFields inherited from class org.apache.sshd.server.command.AbstractFileSystemCommand
fileSystemFields inherited from class org.apache.sshd.server.command.AbstractCommandSupport
cbCalled, cmdRunner, executorServiceFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
ConstructorsConstructorDescriptionGitPackCommand(GitLocationResolver rootDirResolver, String command, org.apache.sshd.common.util.threads.CloseableExecutorService executorService) -
Method Summary
Modifier and TypeMethodDescriptionprotected PathresolveRootDirectory(String command, String[] args) voidrun()voidsetPackConfiguration(GitPackConfiguration packConfiguration) Methods inherited from class AbstractGitCommand
getGitLocationResolver, parseDelimitedString, setErrorStream, setOutputStream, toStringMethods inherited from class org.apache.sshd.server.command.AbstractFileSystemCommand
destroy, getFileSystem, setFileSystemMethods inherited from class org.apache.sshd.server.command.AbstractCommandSupport
getCommand, getEnvironment, getErrorStream, getExecutorService, getExitCallback, getInputStream, getOutputStream, getServerSession, getSession, getStartedCommandFuture, onExit, onExit, setExitCallback, setInputStream, setSession, startMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.common.file.FileSystemAware
setFileSystemFactoryMethods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
Field Details
-
packConfiguration
-
-
Constructor Details
-
GitPackCommand
public GitPackCommand(GitLocationResolver rootDirResolver, String command, org.apache.sshd.common.util.threads.CloseableExecutorService executorService) - Parameters:
rootDirResolver- Resolver for GIT root directorycommand- Command to executeexecutorService- AnCloseableExecutorServiceto be used whenstart(ChannelSession, Environment)-ing execution. Ifnullan ad-hoc single-threaded service is created and used.
-
-
Method Details
-
run
public void run() -
resolveRootDirectory
- Throws:
IOException
-
setPackConfiguration
-