public class JschExecutor
extends java.lang.Object
implements org.apache.commons.exec.Executor
Constructor and Description |
---|
JschExecutor() |
Modifier and Type | Method and Description |
---|---|
int |
execute(org.apache.commons.exec.CommandLine command) |
void |
execute(org.apache.commons.exec.CommandLine command,
org.apache.commons.exec.ExecuteResultHandler handler) |
int |
execute(org.apache.commons.exec.CommandLine command,
java.util.Map environment) |
void |
execute(org.apache.commons.exec.CommandLine command,
java.util.Map environment,
org.apache.commons.exec.ExecuteResultHandler handler) |
org.apache.commons.exec.ProcessDestroyer |
getProcessDestroyer() |
SshTarget |
getSshTarget() |
org.apache.commons.exec.ExecuteStreamHandler |
getStreamHandler() |
org.apache.commons.exec.ExecuteWatchdog |
getWatchdog() |
java.io.File |
getWorkingDirectory() |
boolean |
isFailure(int exitValue) |
void |
setExitValue(int value) |
void |
setExitValues(int[] values) |
void |
setProcessDestroyer(org.apache.commons.exec.ProcessDestroyer processDestroyer) |
void |
setSshTarget(SshTarget sshTarget) |
void |
setStreamHandler(org.apache.commons.exec.ExecuteStreamHandler streamHandler) |
void |
setWatchdog(org.apache.commons.exec.ExecuteWatchdog watchDog) |
void |
setWorkingDirectory(java.io.File workingDirectory) |
public void setExitValue(int value)
setExitValue
in interface org.apache.commons.exec.Executor
public void setExitValues(int[] values)
setExitValues
in interface org.apache.commons.exec.Executor
public boolean isFailure(int exitValue)
isFailure
in interface org.apache.commons.exec.Executor
public org.apache.commons.exec.ExecuteStreamHandler getStreamHandler()
getStreamHandler
in interface org.apache.commons.exec.Executor
public void setStreamHandler(org.apache.commons.exec.ExecuteStreamHandler streamHandler)
setStreamHandler
in interface org.apache.commons.exec.Executor
public org.apache.commons.exec.ExecuteWatchdog getWatchdog()
getWatchdog
in interface org.apache.commons.exec.Executor
public void setWatchdog(org.apache.commons.exec.ExecuteWatchdog watchDog)
setWatchdog
in interface org.apache.commons.exec.Executor
public org.apache.commons.exec.ProcessDestroyer getProcessDestroyer()
getProcessDestroyer
in interface org.apache.commons.exec.Executor
public void setProcessDestroyer(org.apache.commons.exec.ProcessDestroyer processDestroyer)
setProcessDestroyer
in interface org.apache.commons.exec.Executor
public java.io.File getWorkingDirectory()
getWorkingDirectory
in interface org.apache.commons.exec.Executor
public void setWorkingDirectory(java.io.File workingDirectory)
setWorkingDirectory
in interface org.apache.commons.exec.Executor
public int execute(org.apache.commons.exec.CommandLine command) throws org.apache.commons.exec.ExecuteException, java.io.IOException
execute
in interface org.apache.commons.exec.Executor
org.apache.commons.exec.ExecuteException
java.io.IOException
public int execute(org.apache.commons.exec.CommandLine command, java.util.Map environment) throws org.apache.commons.exec.ExecuteException, java.io.IOException
execute
in interface org.apache.commons.exec.Executor
org.apache.commons.exec.ExecuteException
java.io.IOException
public void execute(org.apache.commons.exec.CommandLine command, org.apache.commons.exec.ExecuteResultHandler handler) throws org.apache.commons.exec.ExecuteException, java.io.IOException
execute
in interface org.apache.commons.exec.Executor
org.apache.commons.exec.ExecuteException
java.io.IOException
public void execute(org.apache.commons.exec.CommandLine command, java.util.Map environment, org.apache.commons.exec.ExecuteResultHandler handler) throws org.apache.commons.exec.ExecuteException, java.io.IOException
execute
in interface org.apache.commons.exec.Executor
org.apache.commons.exec.ExecuteException
java.io.IOException
public SshTarget getSshTarget()
public void setSshTarget(SshTarget sshTarget)
Copyright © 2007–2020. All rights reserved.