Package org.apache.sshd.git.pgm
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
public class GitPgmCommandFactory extends AbstractGitCommandFactory
Runs a GIT command locally using an embedded executor
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
GIT_COMMAND_PREFIX
static java.lang.String
GIT_FACTORY_NAME
-
Constructor Summary
Constructors Constructor Description GitPgmCommandFactory()
GitPgmCommandFactory(GitLocationResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitPgmCommand
createGitCommand(java.lang.String command)
GitPgmCommandFactory
withDelegate(org.apache.sshd.server.command.CommandFactory delegate)
GitPackCommandFactory
withExecutorServiceProvider(java.util.function.Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider)
GitPgmCommandFactory
withGitLocationResolver(GitLocationResolver rootDirResolver)
-
Methods inherited from class org.apache.sshd.git.AbstractGitCommandFactory
createUnsupportedCommand, executeSupportedCommand, getCommandPrefix, getExecutorServiceProvider, getGitLocationResolver, isSupportedCommand, resolveExecutorService
-
Methods inherited from class org.apache.sshd.server.command.AbstractDelegatingCommandFactory
createCommand, getDelegateCommandFactory, setDelegateCommandFactory, toString
-
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
-
-
-
-
Field Detail
-
GIT_FACTORY_NAME
public static final java.lang.String GIT_FACTORY_NAME
- See Also:
- Constant Field Values
-
GIT_COMMAND_PREFIX
public static final java.lang.String GIT_COMMAND_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GitPgmCommandFactory
public GitPgmCommandFactory()
-
GitPgmCommandFactory
public GitPgmCommandFactory(GitLocationResolver resolver)
-
-
Method Detail
-
withDelegate
public GitPgmCommandFactory withDelegate(org.apache.sshd.server.command.CommandFactory delegate)
- Overrides:
withDelegate
in classAbstractGitCommandFactory
-
withGitLocationResolver
public GitPgmCommandFactory withGitLocationResolver(GitLocationResolver rootDirResolver)
- Overrides:
withGitLocationResolver
in classAbstractGitCommandFactory
-
withExecutorServiceProvider
public GitPackCommandFactory withExecutorServiceProvider(java.util.function.Supplier<? extends org.apache.sshd.common.util.threads.CloseableExecutorService> provider)
- Overrides:
withExecutorServiceProvider
in classAbstractGitCommandFactory
- Parameters:
provider
- ASupplier
ofCloseableExecutorService
to be used when starting a Git command execution. Ifnull
then a single-threaded ad-hoc service is used.- Returns:
- Self instance
-
createGitCommand
public GitPgmCommand createGitCommand(java.lang.String command)
- Specified by:
createGitCommand
in classAbstractGitCommandFactory
-
-