Interface SshCommandExecutor
-
- All Superinterfaces:
CommandExecutor,Wagon,WagonHasAuthenticationInfo
- All Known Implementing Classes:
AbstractSshWagon,RsyncSshExternalCommandExecutor,RsyncSshExternalWagon,ScpExternalWagon
public interface SshCommandExecutor extends CommandExecutor, WagonHasAuthenticationInfo
-
-
Field Summary
Fields Modifier and Type Field Description static intSSH_FATAL_EXIT_CODE-
Fields inherited from interface org.apache.maven.wagon.CommandExecutor
ROLE
-
Fields inherited from interface org.apache.maven.wagon.Wagon
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CommandlinecreateSshBaseCommandLine(String executable, File privateKey)default voidexecuteCommand(String command)default StreamsexecuteCommand(String command, boolean ignoreFailures)voidfireSessionDebug(String message)voidfireTransferDebug(String message)StringgetSshArgs()StringgetSshExecutable()-
Methods inherited from interface org.apache.maven.wagon.Wagon
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, get, getFileList, getIfNewer, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, put, putDirectory, removeSessionListener, removeTransferListener, resourceExists, setInteractive, setReadTimeout, setTimeout, supportsDirectoryCopy
-
Methods inherited from interface org.apache.maven.wagon.providers.rsync.external.WagonHasAuthenticationInfo
buildRemoteHost, getAuthenticationInfo
-
-
-
-
Field Detail
-
SSH_FATAL_EXIT_CODE
static final int SSH_FATAL_EXIT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSshExecutable
String getSshExecutable()
-
getSshArgs
String getSshArgs()
-
fireTransferDebug
void fireTransferDebug(String message)
-
fireSessionDebug
void fireSessionDebug(String message)
-
executeCommand
default void executeCommand(String command) throws CommandExecutionException
- Specified by:
executeCommandin interfaceCommandExecutor- Throws:
CommandExecutionException
-
executeCommand
default Streams executeCommand(String command, boolean ignoreFailures) throws CommandExecutionException
- Specified by:
executeCommandin interfaceCommandExecutor- Throws:
CommandExecutionException
-
createSshBaseCommandLine
default Commandline createSshBaseCommandLine(String executable, File privateKey)
-
-