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.ChannelExecchannelstatic java.util.Set<org.apache.sshd.client.channel.ClientChannelEvent>CLOSE_WAIT_EVENTSprotected java.lang.StringcommandNameprotected org.slf4j.Loggerlogprotected longwaitTimeout
-
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 voiddestroy()intexitValue()java.io.InputStreamgetErrorStream()java.io.InputStreamgetInputStream()java.io.OutputStreamgetOutputStream()java.lang.StringtoString()intwaitFor()
-
-
-
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:
getOutputStreamin classjava.lang.Process
-
getInputStream
public java.io.InputStream getInputStream()
- Specified by:
getInputStreamin classjava.lang.Process
-
getErrorStream
public java.io.InputStream getErrorStream()
- Specified by:
getErrorStreamin classjava.lang.Process
-
waitFor
public int waitFor() throws java.lang.InterruptedException- Specified by:
waitForin classjava.lang.Process- Throws:
java.lang.InterruptedException
-
exitValue
public int exitValue()
- Specified by:
exitValuein classjava.lang.Process
-
destroy
public void destroy()
- Specified by:
destroyin classjava.lang.Process
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-