Package org.apache.sshd.git.pack
Class GitPackCommand
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.Runnable,FileSystemAware,SessionContextHolder,SessionHolder<ServerSession>,ExecutorServiceCarrier,GitLocationResolverCarrier,Command,CommandDirectErrorStreamAware,CommandDirectInputStreamAware,CommandDirectOutputStreamAware,CommandDirectStreamsAware,CommandLifecycle,ServerSessionAware,ServerSessionHolder
public class GitPackCommand extends AbstractGitCommand
TODO Add javadoc
-
-
Field Summary
Fields Modifier and Type Field Description private GitPackConfigurationpackConfiguration-
Fields inherited from class org.apache.sshd.git.AbstractGitCommand
CHAR, DELIMITER, ENDQUOTE, rootDirResolver, STARTQUOTE
-
Fields inherited from class org.apache.sshd.server.command.AbstractFileSystemCommand
fileSystem
-
Fields inherited from class org.apache.sshd.server.command.AbstractCommandSupport
cbCalled, cmdRunner, executorService
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Constructor Description GitPackCommand(GitLocationResolver rootDirResolver, java.lang.String command, CloseableExecutorService executorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.nio.file.PathresolveRootDirectory(java.lang.String command, java.lang.String[] args)voidrun()voidsetPackConfiguration(GitPackConfiguration packConfiguration)-
Methods inherited from class org.apache.sshd.git.AbstractGitCommand
getGitLocationResolver, parseDelimitedString, setErrorStream, setOutputStream, toString
-
Methods inherited from class org.apache.sshd.server.command.AbstractFileSystemCommand
destroy, getFileSystem, setFileSystem
-
Methods inherited from class org.apache.sshd.server.command.AbstractCommandSupport
getCommand, getEnvironment, getErrorStream, getExecutorService, getExitCallback, getInputStream, getOutputStream, getServerSession, getSession, getStartedCommandFuture, onExit, onExit, setExitCallback, setInputStream, setSession, start
-
Methods 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, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.file.FileSystemAware
setFileSystemFactory
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
-
-
-
Field Detail
-
packConfiguration
private GitPackConfiguration packConfiguration
-
-
Constructor Detail
-
GitPackCommand
public GitPackCommand(GitLocationResolver rootDirResolver, java.lang.String command, 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 Detail
-
run
public void run()
-
resolveRootDirectory
protected java.nio.file.Path resolveRootDirectory(java.lang.String command, java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
setPackConfiguration
public void setPackConfiguration(GitPackConfiguration packConfiguration)
-
-