Package org.apache.hive.ptest.execution

Examples of org.apache.hive.ptest.execution.LocalCommandFactory


    mLogger = logger;
    mShutdown = false;
    mLocalCommandFactory = localCommandFactory;
  }
  public SSHCommandExecutor(Logger logger) {
    this(logger, new LocalCommandFactory(logger));
  }
View Full Code Here


    mLocalCommandFactory = localCommandFactory;
    mSemaphore = new Semaphore(Math.min(Runtime.getRuntime().availableProcessors() * 5, 10));
    mShutdown = false;
  }
  public RSyncCommandExecutor(Logger logger) {
    this(logger, new LocalCommandFactory(logger));
  }
View Full Code Here

            logger = new TestLogger(logStream, TestLogger.LEVEL.DEBUG);
            TestConfiguration testConfiguration = TestConfiguration.fromFile(profileConfFile, logger);
            testConfiguration.setPatch(startRequest.getPatchURL());
            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);
View Full Code Here

    mLocalCommandFactory = localCommandFactory;
    mSshOpts = sshOpts;
    mShutdown = false;
  }
  public SSHCommandExecutor(Logger logger) {
    this(logger, new LocalCommandFactory(logger), "");
  }
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

TOP

Related Classes of org.apache.hive.ptest.execution.LocalCommandFactory

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.