Package com.mapr.ycsb.ssh
Class RunCommand
- java.lang.Object
-
- com.mapr.ycsb.ssh.NodeTask<RunCommand>
-
- com.mapr.ycsb.ssh.RunCommand
-
- All Implemented Interfaces:
java.util.concurrent.Callable<RunCommand>
public class RunCommand extends NodeTask<RunCommand>
-
-
Constructor Summary
Constructors Constructor Description RunCommand(Cluster cluster, java.lang.String host, java.lang.String cmd)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExitCode()java.lang.StringgetOutput()RunCommandrun(SSHSession session)
-
-
-
Constructor Detail
-
RunCommand
public RunCommand(Cluster cluster, java.lang.String host, java.lang.String cmd)
-
-
Method Detail
-
run
public RunCommand run(SSHSession session) throws java.lang.Exception
- Specified by:
runin classNodeTask<RunCommand>- Throws:
java.lang.Exception
-
getOutput
public java.lang.String getOutput() throws java.lang.Exception- Throws:
java.lang.Exception
-
getExitCode
public int getExitCode()
-
-