Class Task

java.lang.Object
com.sshtools.common.ssh.AbstractRequestFuture
com.sshtools.common.ssh.ConnectionAwareTask
com.sshtools.client.tasks.Task
All Implemented Interfaces:
com.sshtools.common.ssh.RequestFuture, Runnable
Direct Known Subclasses:
AbstractConnectionTask, SftpClientTask

public abstract class Task extends com.sshtools.common.ssh.ConnectionAwareTask implements Runnable
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static interface 
     
  • Field Summary

    Fields inherited from class com.sshtools.common.ssh.ConnectionAwareTask

    con, lastError
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Task(com.sshtools.common.ssh.SshConnection con)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Task
    ofRunnable(com.sshtools.common.ssh.SshConnection con, Task.TaskRunnable<T> runnable)
     

    Methods inherited from class com.sshtools.common.ssh.ConnectionAwareTask

    doTask, getLastError, run

    Methods inherited from class com.sshtools.common.ssh.AbstractRequestFuture

    addFutureListener, done, isDone, isSuccess, waitFor, waitForever

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.sshtools.common.ssh.RequestFuture

    isDoneAndSuccess

    Methods inherited from interface java.lang.Runnable

    run
  • Constructor Details

    • Task

      public Task(com.sshtools.common.ssh.SshConnection con)
    • Task

      public Task(SshClient ssh)
  • Method Details

    • ofRunnable

      public static <T> Task ofRunnable(com.sshtools.common.ssh.SshConnection con, Task.TaskRunnable<T> runnable)