Class NodeTask<T>

  • All Implemented Interfaces:
    java.util.concurrent.Callable<T>
    Direct Known Subclasses:
    CopyFromRemote, CopyToRemote, RunCommand

    public abstract class NodeTask<T>
    extends java.lang.Object
    implements java.util.concurrent.Callable<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Cluster cluster  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NodeTask​(Cluster cluster, java.lang.String host)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected void ack​(java.io.OutputStream out)  
      T call()  
      protected int checkAck​(java.io.InputStream in)  
      java.lang.String getHost()  
      protected abstract T run​(SSHSession session)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cluster

        protected final Cluster cluster
    • Constructor Detail

      • NodeTask

        protected NodeTask​(Cluster cluster,
                           java.lang.String host)
    • Method Detail

      • call

        public T call()
               throws java.lang.Exception
        Specified by:
        call in interface java.util.concurrent.Callable<T>
        Throws:
        java.lang.Exception
      • ack

        protected void ack​(java.io.OutputStream out)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • checkAck

        protected int checkAck​(java.io.InputStream in)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • run

        protected abstract T run​(SSHSession session)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getHost

        public java.lang.String getHost()