Package org.apache.sshd.git.transport
Class GitSshdSessionProcess
- java.lang.Object
-
- java.lang.Process
-
- org.apache.sshd.git.transport.GitSshdSessionProcess
-
public class GitSshdSessionProcess extends java.lang.Process
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.sshd.client.channel.ChannelExec
channel
static java.util.Set<org.apache.sshd.client.channel.ClientChannelEvent>
CLOSE_WAIT_EVENTS
protected java.lang.String
commandName
protected org.slf4j.Logger
log
protected long
waitTimeout
-
Constructor Summary
Constructors Constructor Description GitSshdSessionProcess(org.apache.sshd.client.channel.ChannelExec channel, java.lang.String commandName, int timeoutSec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
int
exitValue()
java.io.InputStream
getErrorStream()
java.io.InputStream
getInputStream()
java.io.OutputStream
getOutputStream()
java.lang.String
toString()
int
waitFor()
-
-
-
Field Detail
-
CLOSE_WAIT_EVENTS
public static final java.util.Set<org.apache.sshd.client.channel.ClientChannelEvent> CLOSE_WAIT_EVENTS
-
channel
protected final org.apache.sshd.client.channel.ChannelExec channel
-
commandName
protected final java.lang.String commandName
-
waitTimeout
protected final long waitTimeout
-
log
protected final org.slf4j.Logger log
-
-
Method Detail
-
getOutputStream
public java.io.OutputStream getOutputStream()
- Specified by:
getOutputStream
in classjava.lang.Process
-
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStream
in classjava.lang.Process
-
getErrorStream
public java.io.InputStream getErrorStream()
- Specified by:
getErrorStream
in classjava.lang.Process
-
waitFor
public int waitFor() throws java.lang.InterruptedException
- Specified by:
waitFor
in classjava.lang.Process
- Throws:
java.lang.InterruptedException
-
exitValue
public int exitValue()
- Specified by:
exitValue
in classjava.lang.Process
-
destroy
public void destroy()
- Specified by:
destroy
in classjava.lang.Process
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-