Class ChannelSubsystem

    • Field Detail

      • subsystem

        private final java.lang.String subsystem
    • Constructor Detail

      • ChannelSubsystem

        public ChannelSubsystem​(java.lang.String subsystem)
        Parameters:
        subsystem - The subsystem name for the channel - never null or empty
    • Method Detail

      • getSubsystem

        public final java.lang.String getSubsystem()
        The subsystem name
        Returns:
        The subsystem name for the channel - never null or empty
      • doOpen

        protected void doOpen()
                       throws java.io.IOException
        Overrides:
        doOpen in class ChannelSession
        Throws:
        java.io.IOException
      • handleSuccess

        public void handleSuccess()
                           throws java.io.IOException
        Description copied from interface: Channel
        Invoked when SSH_MSG_CHANNEL_SUCCESS received
        Specified by:
        handleSuccess in interface Channel
        Overrides:
        handleSuccess in class AbstractChannel
        Throws:
        java.io.IOException - If failed to handle the message
      • handleFailure

        public void handleFailure()
                           throws java.io.IOException
        Description copied from interface: Channel
        Invoked when SSH_MSG_CHANNEL_FAILURE received
        Specified by:
        handleFailure in interface Channel
        Overrides:
        handleFailure in class AbstractChannel
        Throws:
        java.io.IOException - If failed to handle the message
      • onClose

        public void onClose​(java.lang.Runnable run)