Class AbstractSubsystemTask

java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.common.ssh.ConnectionAwareTask
com.sshtools.client.tasks.AbstractSubsystemTask
All Implemented Interfaces:
com.sshtools.common.ssh.RequestFuture, Runnable

public abstract class AbstractSubsystemTask extends com.sshtools.common.ssh.ConnectionAwareTask
An abstract task for connecting to an SSH subsystem.
  • Field Details

    • timeout

      protected long timeout
  • Constructor Details

    • AbstractSubsystemTask

      public AbstractSubsystemTask(com.sshtools.common.ssh.SshConnection con)
  • Method Details

    • doTask

      protected void doTask()
      Specified by:
      doTask in class com.sshtools.common.ssh.ConnectionAwareTask
    • createSession

      protected SessionChannelNG createSession() throws com.sshtools.common.ssh.SshException
      Throws:
      com.sshtools.common.ssh.SshException
    • getMinimumWindowSize

      protected abstract com.sshtools.common.util.UnsignedInteger32 getMinimumWindowSize()
    • getMaximumWindowSize

      protected abstract com.sshtools.common.util.UnsignedInteger32 getMaximumWindowSize()
    • getMaximumPacketSize

      protected abstract int getMaximumPacketSize()
    • getSession

      protected SessionChannelNG getSession()
    • nextMessage

      public byte[] nextMessage() throws com.sshtools.common.ssh.SshException
      Throws:
      com.sshtools.common.ssh.SshException
    • onCloseSession

      protected void onCloseSession(SessionChannelNG session)
    • doSubsystemTask

      protected abstract void doSubsystemTask(SessionChannelNG session) throws com.sshtools.common.ssh.SshException
      Throws:
      com.sshtools.common.ssh.SshException
    • sendMessage

      public void sendMessage(com.sshtools.common.ssh.Packet msg) throws com.sshtools.common.ssh.SshException
      Throws:
      com.sshtools.common.ssh.SshException