Class 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)  
    • 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
    • Constructor Detail

      • GitSshdSessionProcess

        public GitSshdSessionProcess​(org.apache.sshd.client.channel.ChannelExec channel,
                                     java.lang.String commandName,
                                     int timeoutSec)
    • Method Detail

      • getOutputStream

        public java.io.OutputStream getOutputStream()
        Specified by:
        getOutputStream in class java.lang.Process
      • getInputStream

        public java.io.InputStream getInputStream()
        Specified by:
        getInputStream in class java.lang.Process
      • getErrorStream

        public java.io.InputStream getErrorStream()
        Specified by:
        getErrorStream in class java.lang.Process
      • waitFor

        public int waitFor()
                    throws java.lang.InterruptedException
        Specified by:
        waitFor in class java.lang.Process
        Throws:
        java.lang.InterruptedException
      • exitValue

        public int exitValue()
        Specified by:
        exitValue in class java.lang.Process
      • destroy

        public void destroy()
        Specified by:
        destroy in class java.lang.Process
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object