Interface CustomizableSshSessionFactoryCommand
- All Known Implementing Classes:
JGitBranchCommand, JGitCheckInCommand, JGitCheckOutCommand, JGitTagCommand, JGitUntagCommand
public interface CustomizableSshSessionFactoryCommand
Supplemental interface for commands that potentially involve a remote server communication.
It allows to customize the SSH session factory being used.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetSshSessionFactorySupplier(BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier) Sets a different supplier for the SSH session factory that will be used by this command.
-
Method Details
-
setSshSessionFactorySupplier
void setSshSessionFactorySupplier(BiFunction<GitScmProviderRepository, org.slf4j.Logger, ScmProviderAwareSshdSessionFactory> sshSessionFactorySupplier) Sets a different supplier for the SSH session factory that will be used by this command. By default it usesScmProviderAwareSshdSessionFactory.- Parameters:
sshSessionFactorySupplier- a function that takes a GitScmProviderRepository and Logger and returns a ScmProviderAwareSshdSessionFactory
-