Package org.apache.hive.ptest.execution.context

Examples of org.apache.hive.ptest.execution.context.ExecutionContextProvider


        antArgs += " ";
      }
      antArgs += "-" + ANT_ARG + Joiner.on(" -" + ANT_ARG).join(supplementalAntArgs);
      conf.setAntArgs(antArgs);
    }
    ExecutionContextProvider executionContextProvider = null;
    ExecutionContext executionContext = null;
    int exitCode = 0;
    try {
      executionContextProvider = executionContextConfiguration
          .getExecutionContextProvider();
      executionContext = executionContextProvider.createExecutionContext();
      LocalCommandFactory localCommandFactory = new LocalCommandFactory(LOG);
      PTest ptest = new PTest(conf, executionContext, buildTag, logDir,
          localCommandFactory, new SSHCommandExecutor(LOG, localCommandFactory, conf.getSshOpts()),
          new RSyncCommandExecutor(LOG, 10, localCommandFactory), LOG);
      exitCode = ptest.run();
    } finally {
      if(executionContext != null) {
        executionContext.terminate();
      }
      if(executionContextProvider != null) {
        executionContextProvider.close();
      }
    }
    System.exit(exitCode);
  }
View Full Code Here


            antArgs += " ";
          }
          antArgs += "-" + ANT_ARG + Joiner.on(" -" + ANT_ARG).join(supplementalAntArgs);
          conf.setAntArgs(antArgs);
        }
        ExecutionContextProvider executionContextProvider = null;
        ExecutionContext executionContext = null;
        int exitCode = 0;
        try {
          executionContextProvider = executionContextConfiguration
              .getExecutionContextProvider();
          executionContext = executionContextProvider.createExecutionContext();
          PTest ptest = new PTest(conf, executionContext, buildTag, logDir,
              new LocalCommandFactory(LOG), new SSHCommandExecutor(LOG),
              new RSyncCommandExecutor(LOG), LOG);
          exitCode = ptest.run();
        } finally {
          if(executionContext != null) {
            executionContext.terminate();
          }
          if(executionContextProvider != null) {
            executionContextProvider.close();
          }
        }
        System.exit(exitCode);
  }
View Full Code Here

TOP

Related Classes of org.apache.hive.ptest.execution.context.ExecutionContextProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.