Package org.apache.tajo.master.querymaster

Examples of org.apache.tajo.master.querymaster.QueryJobEvent


    }
    queryInProgress.getQueryInfo().setQueryMasterResource(workResource);

    //fire QueryJobStart event
    queryInProgress.getEventHandler().handle(
        new QueryJobEvent(QueryJobEvent.Type.QUERY_JOB_START, queryInProgress.getQueryInfo()));
  }
View Full Code Here


  public void startQueryMaster(QueryInProgress queryInProgress) {
    try {
      allocateAndLaunchQueryMaster(queryInProgress);

      queryInProgress.getEventHandler().handle(
          new QueryJobEvent(QueryJobEvent.Type.QUERY_JOB_START, queryInProgress.getQueryInfo()));

    } catch (YarnRemoteException e) {
      LOG.error(e.getMessage(), e);
      //TODO set QueryState(fail)
    }
View Full Code Here

    }
    queryInProgress.getQueryInfo().setQueryMasterResource(workResource.workerResource);

    //fire QueryJobStart event
    queryInProgress.getEventHandler().handle(
        new QueryJobEvent(QueryJobEvent.Type.QUERY_JOB_START, queryInProgress.getQueryInfo()));
  }
View Full Code Here

  public void startQueryMaster(QueryInProgress queryInProgress) {
    try {
      allocateAndLaunchQueryMaster(queryInProgress);

      queryInProgress.getEventHandler().handle(
          new QueryJobEvent(QueryJobEvent.Type.QUERY_JOB_START, queryInProgress.getQueryInfo()));
    } catch (IOException e) {
      LOG.error(e);
    } catch (YarnException e) {
      LOG.error(e);
    }
View Full Code Here

    public BoolProto killQuery(RpcController controller, KillQueryRequest request) throws ServiceException {
      try {
        context.getSessionManager().touch(request.getSessionId().getId());
        QueryId queryId = new QueryId(request.getQueryId());
        QueryJobManager queryJobManager = context.getQueryJobManager();
        queryJobManager.getEventHandler().handle(new QueryJobEvent(QueryJobEvent.Type.QUERY_JOB_KILL,
            new QueryInfo(queryId)));
        return BOOL_TRUE;
      } catch (Throwable t) {
        throw new ServiceException(t);
      }
View Full Code Here

TOP

Related Classes of org.apache.tajo.master.querymaster.QueryJobEvent

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.