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.Executorpublic void setExitValues(int[] values)
setExitValues in interface org.apache.commons.exec.Executorpublic boolean isFailure(int exitValue)
isFailure in interface org.apache.commons.exec.Executorpublic org.apache.commons.exec.ExecuteStreamHandler getStreamHandler()
getStreamHandler in interface org.apache.commons.exec.Executorpublic void setStreamHandler(org.apache.commons.exec.ExecuteStreamHandler streamHandler)
setStreamHandler in interface org.apache.commons.exec.Executorpublic org.apache.commons.exec.ExecuteWatchdog getWatchdog()
getWatchdog in interface org.apache.commons.exec.Executorpublic void setWatchdog(org.apache.commons.exec.ExecuteWatchdog watchDog)
setWatchdog in interface org.apache.commons.exec.Executorpublic org.apache.commons.exec.ProcessDestroyer getProcessDestroyer()
getProcessDestroyer in interface org.apache.commons.exec.Executorpublic void setProcessDestroyer(org.apache.commons.exec.ProcessDestroyer processDestroyer)
setProcessDestroyer in interface org.apache.commons.exec.Executorpublic java.io.File getWorkingDirectory()
getWorkingDirectory in interface org.apache.commons.exec.Executorpublic void setWorkingDirectory(java.io.File workingDirectory)
setWorkingDirectory in interface org.apache.commons.exec.Executorpublic int execute(org.apache.commons.exec.CommandLine command)
            throws org.apache.commons.exec.ExecuteException,
                   java.io.IOException
execute in interface org.apache.commons.exec.Executororg.apache.commons.exec.ExecuteExceptionjava.io.IOExceptionpublic 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.Executororg.apache.commons.exec.ExecuteExceptionjava.io.IOExceptionpublic 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.Executororg.apache.commons.exec.ExecuteExceptionjava.io.IOExceptionpublic 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.Executororg.apache.commons.exec.ExecuteExceptionjava.io.IOExceptionpublic SshTarget getSshTarget()
public void setSshTarget(SshTarget sshTarget)
Copyright © 2007–2020. All rights reserved.