Package com.mapr.ycsb.ssh
Class NodeTask<T>
- java.lang.Object
-
- com.mapr.ycsb.ssh.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>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidack(java.io.OutputStream out)Tcall()protected intcheckAck(java.io.InputStream in)java.lang.StringgetHost()protected abstract Trun(SSHSession session)
-
-
-
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:
callin interfacejava.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()
-
-