Class ChannelExec

    • Field Detail

      • command

        private final java.lang.String command
    • Constructor Detail

      • ChannelExec

        public ChannelExec​(java.lang.String command,
                           PtyChannelConfigurationHolder configHolder,
                           java.util.Map<java.lang.String,​?> env)
    • Method Detail

      • 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