Package com.mapr.ycsb
Class Driver
- java.lang.Object
-
- org.apache.hadoop.conf.Configured
-
- com.mapr.ycsb.App
-
- com.mapr.ycsb.Driver
-
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class Driver extends App
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDriver.Config
-
Constructor Summary
Constructors Constructor Description Driver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyFromRemote(java.lang.String remoteFilePath, java.lang.String localFilePath)voidcopyToRemote(java.lang.String localFilePath, java.lang.String remoteFilePath)voidcreateSessionFolder(java.lang.String folder)booleanexec(java.lang.String cmd)protected org.slf4j.LoggergetLogger()static voidmain(java.lang.String[] args)intrun0()-
Methods inherited from class com.mapr.ycsb.App
getConfig, getConfigFile, getSessionName, run, usage
-
-
-
-
Method Detail
-
run0
public int run0() throws java.lang.Exception
-
exec
public boolean exec(java.lang.String cmd) throws com.jcraft.jsch.JSchException, java.lang.InterruptedException, java.util.concurrent.ExecutionException- Throws:
com.jcraft.jsch.JSchExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionException
-
copyToRemote
public void copyToRemote(java.lang.String localFilePath, java.lang.String remoteFilePath) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, com.jcraft.jsch.JSchException- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptioncom.jcraft.jsch.JSchException
-
copyFromRemote
public void copyFromRemote(java.lang.String remoteFilePath, java.lang.String localFilePath) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, com.jcraft.jsch.JSchException- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptioncom.jcraft.jsch.JSchException
-
createSessionFolder
public void createSessionFolder(java.lang.String folder) throws com.jcraft.jsch.JSchException, java.lang.InterruptedException, java.util.concurrent.ExecutionException- Throws:
com.jcraft.jsch.JSchExceptionjava.lang.InterruptedExceptionjava.util.concurrent.ExecutionException
-
main
public static void main(java.lang.String[] args) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.lang.Exception- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.lang.Exception
-
-