Class GitPgmCommandFactory
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.pgm.GitPgmCommandFactory
- All Implemented Interfaces:
org.apache.sshd.common.util.threads.ExecutorServiceProvider, GitLocationResolverCarrier, org.apache.sshd.server.command.CommandFactory
Runs a GIT command locally using an embedded executor
-
Field Summary
FieldsFields 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) 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:
-
-
Constructor Details
-
GitPgmCommandFactory
public GitPgmCommandFactory() -
GitPgmCommandFactory
-
-
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
-