Package com.mapr.ycsb

Class 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 class  Driver.Config  
    • Field Summary

      • Fields inherited from class com.mapr.ycsb.App

        config
    • Constructor Summary

      Constructors 
      Constructor Description
      Driver()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void copyFromRemote​(java.lang.String remoteFilePath, java.lang.String localFilePath)  
      void copyToRemote​(java.lang.String localFilePath, java.lang.String remoteFilePath)  
      void createSessionFolder​(java.lang.String folder)  
      boolean exec​(java.lang.String cmd)  
      protected org.slf4j.Logger getLogger()  
      static void main​(java.lang.String[] args)  
      int run0()  
      • Methods inherited from class org.apache.hadoop.conf.Configured

        getConf, setConf
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.hadoop.conf.Configurable

        getConf, setConf
    • Constructor Detail

      • Driver

        public Driver()
    • Method Detail

      • run0

        public int run0()
                 throws java.lang.Exception
        Specified by:
        run0 in class App
        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.JSchException
        java.lang.InterruptedException
        java.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.InterruptedException
        java.util.concurrent.ExecutionException
        com.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.InterruptedException
        java.util.concurrent.ExecutionException
        com.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.JSchException
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
      • getLogger

        protected org.slf4j.Logger getLogger()
        Specified by:
        getLogger in class App
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.InterruptedException,
                                java.util.concurrent.ExecutionException,
                                java.lang.Exception
        Throws:
        java.lang.InterruptedException
        java.util.concurrent.ExecutionException
        java.lang.Exception