Class GitPackCommandFactory
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.server.command.AbstractDelegatingCommandFactory
org.apache.sshd.git.AbstractGitCommandFactory
org.apache.sshd.git.pack.GitPackCommandFactory
- All Implemented Interfaces:
org.apache.sshd.common.util.threads.ExecutorServiceProvider, GitLocationResolverCarrier, org.apache.sshd.server.command.CommandFactory
TODO Add javadoc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprivate GitPackConfigurationFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGitCommand(String command) withDelegate(org.apache.sshd.server.command.CommandFactory delegate) withExecutorServiceProvider(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider) withGitLocationResolver(GitLocationResolver rootDirResolver) withGitPackConfiguration(GitPackConfiguration configuration) Sets theGitPackConfigurationthat will be set for allGitPackCommands created by this factory.Methods inherited from class AbstractGitCommandFactory
createUnsupportedCommand, executeSupportedCommand, getCommandPrefix, getExecutorServiceProvider, getGitLocationResolver, isSupportedCommand, resolveExecutorServiceMethods inherited from class org.apache.sshd.server.command.AbstractDelegatingCommandFactory
createCommand, getDelegateCommandFactory, setDelegateCommandFactory, toStringMethods 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.util.threads.ExecutorServiceProvider
resolveExecutorService
-
Field Details
-
GIT_FACTORY_NAME
- See Also:
-
GIT_COMMAND_PREFIX
- See Also:
-
packConfiguration
-
-
Constructor Details
-
GitPackCommandFactory
public GitPackCommandFactory() -
GitPackCommandFactory
-
-
Method Details
-
withDelegate
- Overrides:
withDelegatein classAbstractGitCommandFactory
-
withGitLocationResolver
- Overrides:
withGitLocationResolverin classAbstractGitCommandFactory
-
withExecutorServiceProvider
public GitPackCommandFactory withExecutorServiceProvider(Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider) - Overrides:
withExecutorServiceProviderin classAbstractGitCommandFactory- Parameters:
provider- ASupplierofCloseableExecutorServiceto be used when starting a Git command execution. Ifnullthen a single-threaded ad-hoc service is used.- Returns:
- Self instance
-
createGitCommand
- Specified by:
createGitCommandin classAbstractGitCommandFactory
-
withGitPackConfiguration
Sets theGitPackConfigurationthat will be set for allGitPackCommands created by this factory.Every time a
GitPackCommandcreates a JGitUploadPackorReceivePack, the corresponding method of theGitPackConfigurationset here is called. This allows you to configure JGit further, e.g. to set pre- and post-receive hooks.- Parameters:
configuration- the configuration to use for git pack commands.- Returns:
- Self instance
-