public abstract class NodeTask<T>
extends java.lang.Object
implements java.util.concurrent.Callable<T>
| Modifier | Constructor and Description |
|---|---|
protected |
NodeTask(Cluster cluster,
java.lang.String host) |
| Modifier and Type | Method and 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) |
protected final Cluster cluster
protected NodeTask(Cluster cluster, java.lang.String host)
public T call() throws java.lang.Exception
call in interface java.util.concurrent.Callable<T>java.lang.Exceptionprotected void ack(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionprotected int checkAck(java.io.InputStream in)
throws java.io.IOException
java.io.IOExceptionprotected abstract T run(SSHSession session) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getHost()