Package org.oddjob.ssh
Class SshExecJob
java.lang.Object
org.oddjob.ssh.SshClientBase
org.oddjob.ssh.SshExecJob
- All Implemented Interfaces:
Callable<Integer>,ConsoleOwner
Description
Runs a remote SSH Exec command.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvide the console archive.getStdin()booleanvoidsetCommand(String command) voidsetRedirectStderr(boolean redirectStderr) voidsetStderr(OutputStream stderr) voidsetStdin(InputStream stdin) voidsetStdout(OutputStream stdout) Methods inherited from class org.oddjob.ssh.SshClientBase
call, getConnection, getName, setConnection, setName, stop, toString
-
Constructor Details
-
SshExecJob
public SshExecJob()
-
-
Method Details
-
consoleLog
Description copied from interface:ConsoleOwnerProvide the console archive.- Specified by:
consoleLogin interfaceConsoleOwner- Returns:
- The archive. Must not be null.
-
getCommand
-
setCommand
-
isRedirectStderr
public boolean isRedirectStderr() -
setRedirectStderr
public void setRedirectStderr(boolean redirectStderr) -
getStdin
-
setStdin
-
getStdout
-
setStdout
-
getStderr
-
setStderr
-