Class Channel


  • public class Channel
    extends java.lang.Object
    Channel.
    Version:
    $Id: Channel.java,v 1.1 2007/10/15 12:49:56 cplattne Exp $
    • Field Detail

      • CHANNEL_BUFFER_SIZE

        private static final int CHANNEL_BUFFER_SIZE
      • channelBufferSize

        int channelBufferSize
        This channel's session size.
      • localID

        int localID
      • remoteID

        int remoteID
      • channelSendLock

        final java.lang.Object channelSendLock
      • closeMessageSent

        boolean closeMessageSent
      • msgWindowAdjust

        final byte[] msgWindowAdjust
      • state

        int state
      • closeMessageRecv

        boolean closeMessageRecv
      • successCounter

        int successCounter
      • failedCounter

        int failedCounter
      • localWindow

        int localWindow
      • remoteWindow

        long remoteWindow
      • localMaxPacketSize

        int localMaxPacketSize
      • remoteMaxPacketSize

        int remoteMaxPacketSize
      • eof

        private boolean eof
      • exit_status

        java.lang.Integer exit_status
      • exit_signal

        java.lang.String exit_signal
      • hexX11FakeCookie

        java.lang.String hexX11FakeCookie
      • reasonClosedLock

        private final java.lang.Object reasonClosedLock
      • reasonClosed

        private java.lang.Throwable reasonClosed
      • log

        private static final Logger log
    • Method Detail

      • eof

        void eof()
      • isEOF

        boolean isEOF()
      • setWindowSize

        public void setWindowSize​(int newSize)
      • pipeStdoutStream

        public void pipeStdoutStream​(java.io.OutputStream os)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • pipeStderrStream

        public void pipeStderrStream​(java.io.OutputStream os)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getExitSignal

        public java.lang.String getExitSignal()
      • getExitStatus

        public java.lang.Integer getExitStatus()
      • getReasonClosed

        public java.lang.String getReasonClosed()
        Deprecated.
        Gets reason closed.
        Returns:
        the reason closed
      • getReasonClosedCause

        public java.lang.Throwable getReasonClosedCause()
      • setReasonClosed

        public void setReasonClosed​(java.lang.String reasonClosed)
      • setReasonClosed

        public void setReasonClosed​(java.lang.Throwable reasonClosed)
      • freeupWindow

        void freeupWindow​(int copylen)
                   throws java.io.IOException
        Update the flow control couner and if necessary, sends ACK to the other end to let it send more data.
        Throws:
        java.io.IOException
      • freeupWindow

        void freeupWindow​(int copylen,
                          boolean sendAsync)
                   throws java.io.IOException
        Update the flow control couner and if necessary, sends ACK to the other end to let it send more data.
        Throws:
        java.io.IOException
      • requestWindowChange

        public void requestWindowChange​(int term_width_characters,
                                        int term_height_characters,
                                        int term_width_pixels,
                                        int term_height_pixels)
                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • signal

        public void signal​(java.lang.String name)
                    throws java.io.IOException
        Throws:
        java.io.IOException