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.Processpublic java.io.InputStream getInputStream()
getInputStream in class java.lang.Processpublic java.io.InputStream getErrorStream()
getErrorStream in class java.lang.Processpublic int waitFor()
throws java.lang.InterruptedException
waitFor in class java.lang.Processjava.lang.InterruptedExceptionpublic boolean waitFor(long timeout,
java.util.concurrent.TimeUnit unit)
throws java.lang.InterruptedException
waitFor in class java.lang.Processjava.lang.InterruptedExceptionpublic int exitValue()
exitValue in class java.lang.Processpublic void destroy()
destroy in class java.lang.Process