Examples of run()


Examples of org.apache.helix.healthcheck.HealthStatsAggregationTask.run()

    String controllerName = CONTROLLER_PREFIX + "_0";
    HelixManager manager = _startCMResultMap.get(controllerName)._manager;

    HealthStatsAggregationTask task = new HealthStatsAggregationTask(_startCMResultMap.get(controllerName)._manager);
    task.run();
    Thread.sleep(4000);
    HelixDataAccessor helixDataAccessor = manager.getHelixDataAccessor();
    Builder keyBuilder = helixDataAccessor.keyBuilder();

    boolean result =
View Full Code Here

Examples of org.apache.helix.integration.manager.MockParticipantManager.run()

    // Espresso_driver.py will consume this
    System.out
        .println("MockHealthReportParticipant process started, instanceName: " + instanceName);

    participant.run();
  }
}
View Full Code Here

Examples of org.apache.helix.monitoring.ZKPathDataDumpTask.run()

        Assert.assertTrue(_zkClient.getChildren(nextnextPath).size() > 0);
      }
    }
   
    ZKPathDataDumpTask dumpTask = new ZKPathDataDumpTask(manager, _zkClient, 0);
    dumpTask.run();
   
    subPaths = _zkClient.getChildren(controllerStatusPath);
    Assert.assertTrue(subPaths.size() > 0);
    for(String subPath : subPaths)
    {
View Full Code Here

Examples of org.apache.hive.ptest.execution.LogDirectoryCleaner.run()

  @org.junit.Test
  public void testClean() throws Exception {
    File dir = create("a-0", "a-1", "a-2", "malformed", "b-0", "c-0", "c-5");
    LogDirectoryCleaner cleaner = new LogDirectoryCleaner(dir, 1);
    cleaner.run();
    List<String> remaining = Lists.newArrayList(dir.list());
    Collections.sort(remaining);
    Assert.assertEquals(Lists.newArrayList("a-1", "a-2", "b-0", "c-5", "malformed"),  remaining);
  }
View Full Code Here

Examples of org.apache.hive.ptest.execution.PTest.run()

            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());
            } else {
              test.setStatus(Status.failed("Tests failed with exit code " + result));
            }
View Full Code Here

Examples of org.apache.hive.service.cli.operation.ExecuteStatementOperation.run()

    OperationManager operationManager = getOperationManager();
    ExecuteStatementOperation operation = operationManager
        .newExecuteStatementOperation(getSession(), statement, confOverlay, runAsync);
    OperationHandle opHandle = operation.getHandle();
    try {
      operation.run();
      opHandleSet.add(opHandle);
      return opHandle;
    } catch (HiveSQLException e) {
      // Cleanup opHandle in case the query is synchronous
      // Async query needs to retain and pass back the opHandle for error reporting
View Full Code Here

Examples of org.apache.hive.service.cli.operation.GetCatalogsOperation.run()

    OperationManager operationManager = getOperationManager();
    GetCatalogsOperation operation = operationManager.newGetCatalogsOperation(getSession());
    OperationHandle opHandle = operation.getHandle();
    try {
      operation.run();
      opHandleSet.add(opHandle);
      return opHandle;
    } catch (HiveSQLException e) {
      operationManager.closeOperation(opHandle);
      throw e;
View Full Code Here

Examples of org.apache.hive.service.cli.operation.GetColumnsOperation.run()

    OperationManager operationManager = getOperationManager();
    GetColumnsOperation operation = operationManager.newGetColumnsOperation(getSession(),
        catalogName, schemaName, tableName, columnName);
    OperationHandle opHandle = operation.getHandle();
    try {
      operation.run();
      opHandleSet.add(opHandle);
      return opHandle;
    } catch (HiveSQLException e) {
      operationManager.closeOperation(opHandle);
      throw e;
View Full Code Here

Examples of org.apache.hive.service.cli.operation.GetFunctionsOperation.run()

    OperationManager operationManager = getOperationManager();
    GetFunctionsOperation operation = operationManager
        .newGetFunctionsOperation(getSession(), catalogName, schemaName, functionName);
    OperationHandle opHandle = operation.getHandle();
    try {
      operation.run();
      opHandleSet.add(opHandle);
      return opHandle;
    } catch (HiveSQLException e) {
      operationManager.closeOperation(opHandle);
      throw e;
View Full Code Here

Examples of org.apache.hive.service.cli.operation.GetSchemasOperation.run()

    OperationManager operationManager = getOperationManager();
    GetSchemasOperation operation =
        operationManager.newGetSchemasOperation(getSession(), catalogName, schemaName);
    OperationHandle opHandle = operation.getHandle();
    try {
      operation.run();
      opHandleSet.add(opHandle);
      return opHandle;
    } catch (HiveSQLException e) {
      operationManager.closeOperation(opHandle);
      throw e;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.