Package org.apache.hive.ptest.execution.ssh

Examples of org.apache.hive.ptest.execution.ssh.SSHCommandExecutor


      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();
View Full Code Here


            testConfiguration.setJiraName(startRequest.getJiraName());
            testConfiguration.setClearLibraryCache(startRequest.isClearLibraryCache());
            LocalCommandFactory localCommandFactory = new LocalCommandFactory(logger);
            PTest ptest = mPTestBuilder.build(testConfiguration, mExecutionContext,
                test.getStartRequest().getTestHandle(), logDir,
                localCommandFactory, new SSHCommandExecutor(logger),
                new RSyncCommandExecutor(logger, mExecutionContextConfiguration.getMaxRsyncThreads(),
                  localCommandFactory), logger);
            int result = ptest.run();
            if(result == Constants.EXIT_CODE_SUCCESS) {
              test.setStatus(Status.ok());
View Full Code Here

    Integer numThreads = context.getInteger(NUM_THREADS, 3);
    String instanceType = context.getString(INSTANCE_TYPE, "c1.xlarge");
    CloudComputeService cloudComputeService = new CloudComputeService(apiKey, accessKey,
        instanceType, groupName, imageId, keyPair, securityGroup, maxBid);
    CloudExecutionContextProvider service = new CloudExecutionContextProvider(
        dataDir, numHosts, cloudComputeService, new SSHCommandExecutor(LOG), workingDirectory,
        privateKey, user, localDirs, numThreads, 60, maxHostsPerCreateRequest);
    return service;
  }
View Full Code Here

    Integer numThreads = context.getInteger(NUM_THREADS, 3);
    String instanceType = context.getString(INSTANCE_TYPE, "c1.xlarge");
    CloudComputeService cloudComputeService = new CloudComputeService(apiKey, accessKey,
        instanceType, groupName, imageId, keyPair, securityGroup, maxBid);
    CloudExecutionContextProvider service = new CloudExecutionContextProvider(
        dataDir, numHosts, cloudComputeService, new SSHCommandExecutor(LOG), workingDirectory,
        privateKey, user, localDirs, numThreads, 60);
    return service;
  }
View Full Code Here

            testConfiguration.setPatch(startRequest.getPatchURL());
            testConfiguration.setJiraName(startRequest.getJiraName());
            testConfiguration.setClearLibraryCache(startRequest.isClearLibraryCache());
            PTest ptest = mPTestBuilder.build(testConfiguration, mExecutionContext,
                test.getStartRequest().getTestHandle(), logDir,
                new LocalCommandFactory(logger), new SSHCommandExecutor(logger),
                new RSyncCommandExecutor(logger), logger);
            int result = ptest.run();
            if(result == Constants.EXIT_CODE_SUCCESS) {
              test.setStatus(Status.ok());
            } else {
View Full Code Here

        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();
View Full Code Here

TOP

Related Classes of org.apache.hive.ptest.execution.ssh.SSHCommandExecutor

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.