Class SshdSession.SshdExecProcess

  • Enclosing class:
    SshdSession

    private static class SshdSession.SshdExecProcess
    extends java.lang.Process
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.sshd.client.channel.ChannelExec channel  
      private java.lang.String commandName  
    • Constructor Summary

      Constructors 
      Constructor Description
      SshdExecProcess​(org.apache.sshd.client.channel.ChannelExec channel, java.lang.String commandName)  
    • 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()  
      int waitFor()  
      boolean waitFor​(long timeout, java.util.concurrent.TimeUnit unit)  
      • Methods inherited from class java.lang.Process

        destroyForcibly, isAlive
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • channel

        private final org.apache.sshd.client.channel.ChannelExec channel
      • commandName

        private final java.lang.String commandName
    • Constructor Detail

      • SshdExecProcess

        public SshdExecProcess​(org.apache.sshd.client.channel.ChannelExec channel,
                               java.lang.String commandName)
    • 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
      • waitFor

        public boolean waitFor​(long timeout,
                               java.util.concurrent.TimeUnit unit)
                        throws java.lang.InterruptedException
        Overrides:
        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