Class AsyncSessionTask

java.lang.Object
com.sshtools.client.tasks.AsyncSessionTask
All Implemented Interfaces:
Runnable

public abstract class AsyncSessionTask extends Object implements Runnable
An task for using the SSH session asynchronously
  • Constructor Details

    • AsyncSessionTask

      public AsyncSessionTask(com.sshtools.synergy.ssh.Connection<SshClientContext> con, com.sshtools.common.ssh.ChannelRequestFuture future)
    • AsyncSessionTask

      public AsyncSessionTask(com.sshtools.synergy.ssh.Connection<SshClientContext> con)
  • Method Details

    • isAllocatePseudoTerminal

      protected boolean isAllocatePseudoTerminal()
    • disconnect

      public void disconnect()
    • getChannelFuture

      public com.sshtools.common.ssh.ChannelRequestFuture getChannelFuture()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getBufferSize

      protected int getBufferSize()
    • getOutputStream

      public OutputStream getOutputStream()
    • getInputStream

      public InputStream getInputStream()
    • setupSession

      protected abstract void setupSession(com.sshtools.common.ssh.SessionChannel session)
    • onOpenSession

      protected abstract void onOpenSession(com.sshtools.common.ssh.SessionChannel session)
    • onCloseSession

      protected abstract void onCloseSession(com.sshtools.common.ssh.SessionChannel session)
    • close

      public void close()