private static class SshdSession.SshdExecProcess
extends java.lang.Process
Modifier and Type | Field and Description |
---|---|
private org.apache.sshd.client.channel.ChannelExec |
channel |
private java.lang.String |
commandName |
private long |
timeoutMillis |
Constructor and Description |
---|
SshdExecProcess(org.apache.sshd.client.channel.ChannelExec channel,
java.lang.String commandName,
long timeoutMillis) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
int |
exitValue() |
java.io.InputStream |
getErrorStream() |
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
int |
waitFor() |
boolean |
waitFor(long timeout,
java.util.concurrent.TimeUnit unit) |
private final org.apache.sshd.client.channel.ChannelExec channel
private final long timeoutMillis
private final java.lang.String commandName
public SshdExecProcess(org.apache.sshd.client.channel.ChannelExec channel, java.lang.String commandName, long timeoutMillis)
public java.io.OutputStream getOutputStream()
getOutputStream
in class java.lang.Process
public java.io.InputStream getInputStream()
getInputStream
in class java.lang.Process
public java.io.InputStream getErrorStream()
getErrorStream
in class java.lang.Process
public int waitFor() throws java.lang.InterruptedException
waitFor
in class java.lang.Process
java.lang.InterruptedException
public boolean waitFor(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
waitFor
in class java.lang.Process
java.lang.InterruptedException
public int exitValue()
exitValue
in class java.lang.Process
public void destroy()
destroy
in class java.lang.Process