当前位置: 首页>>代码示例>>Java>>正文


Java QueryMasterTask.QueryMasterTaskContext方法代码示例

本文整理汇总了Java中org.apache.tajo.master.querymaster.QueryMasterTask.QueryMasterTaskContext方法的典型用法代码示例。如果您正苦于以下问题:Java QueryMasterTask.QueryMasterTaskContext方法的具体用法?Java QueryMasterTask.QueryMasterTaskContext怎么用?Java QueryMasterTask.QueryMasterTaskContext使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.tajo.master.querymaster.QueryMasterTask的用法示例。


在下文中一共展示了QueryMasterTask.QueryMasterTaskContext方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: TajoResourceAllocator

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public TajoResourceAllocator(QueryMasterTask.QueryMasterTaskContext queryTaskContext) {
  this.queryTaskContext = queryTaskContext;
  executorService = Executors.newFixedThreadPool(
      queryTaskContext.getConf().getIntVar(TajoConf.ConfVars.YARN_RM_TASKRUNNER_LAUNCH_PARALLEL_NUM));
}
 
开发者ID:gruter,项目名称:tajo-cdh,代码行数:6,代码来源:TajoResourceAllocator.java

示例2: releaseWorkerResource

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public static void releaseWorkerResource(QueryMasterTask.QueryMasterTaskContext context,
                                         ExecutionBlockId executionBlockId,
                                         ContainerId containerId) throws Exception {
  List<ContainerId> containerIds = new ArrayList<ContainerId>();
  containerIds.add(containerId);

  releaseWorkerResource(context, executionBlockId, containerIds);
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:9,代码来源:TajoContainerProxy.java

示例3: ContainerProxy

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public ContainerProxy(QueryMasterTask.QueryMasterTaskContext context, Configuration conf,
                      ExecutionBlockId executionBlockId, Container container) {
  this.context = context;
  this.conf = conf;
  this.state = ContainerState.PREP;
  this.container = container;
  this.executionBlockId = executionBlockId;
  this.containerID = container.getId();
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:10,代码来源:ContainerProxy.java

示例4: YarnTaskRunnerLauncherImpl

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public YarnTaskRunnerLauncherImpl(QueryMasterTask.QueryMasterTaskContext context, YarnRPC yarnRPC) {
  super(YarnTaskRunnerLauncherImpl.class.getName());
  this.context = context;
  this.yarnRPC = yarnRPC;
  executorService = Executors.newFixedThreadPool(
      context.getConf().getIntVar(TajoConf.ConfVars.YARN_RM_TASKRUNNER_LAUNCH_PARALLEL_NUM));
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:8,代码来源:YarnTaskRunnerLauncherImpl.java

示例5: YarnResourceAllocator

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public YarnResourceAllocator(QueryMasterTask.QueryMasterTaskContext queryTaskContext) {
  this.queryTaskContext = queryTaskContext;
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:4,代码来源:YarnResourceAllocator.java

示例6: TaskSchedulerContext

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public TaskSchedulerContext(QueryMasterTask.QueryMasterTaskContext masterContext, boolean isLeafQuery,
                            ExecutionBlockId blockId) {
  this.masterContext = masterContext;
  this.isLeafQuery = isLeafQuery;
  this.blockId = blockId;
}
 
开发者ID:gruter,项目名称:tajo-cdh,代码行数:7,代码来源:TaskSchedulerContext.java

示例7: TajoContainerProxy

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public TajoContainerProxy(QueryMasterTask.QueryMasterTaskContext context,
                          Configuration conf, Container container,
                          ExecutionBlockId executionBlockId) {
  super(context, conf, executionBlockId, container);
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:6,代码来源:TajoContainerProxy.java

示例8: getMasterContext

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public QueryMasterTask.QueryMasterTaskContext getMasterContext() {
  return masterContext;
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:4,代码来源:TaskSchedulerContext.java

示例9: YarnRMContainerAllocator

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public YarnRMContainerAllocator(QueryMasterTask.QueryMasterTaskContext context) {
  super();
  this.context = context;
  this.appAttemptId = ApplicationIdUtils.createApplicationAttemptId(context.getQueryId());
  this.eventHandler = context.getDispatcher().getEventHandler();
}
 
开发者ID:apache,项目名称:incubator-tajo,代码行数:7,代码来源:YarnRMContainerAllocator.java

示例10: YarnRMContainerAllocator

import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public YarnRMContainerAllocator(QueryMasterTask.QueryMasterTaskContext context) {
  super(ApplicationIdUtils.createApplicationAttemptId(context.getQueryId()));
  this.context = context;
  this.eventHandler = context.getDispatcher().getEventHandler();
}
 
开发者ID:gruter,项目名称:tajo-cdh,代码行数:6,代码来源:YarnRMContainerAllocator.java


注:本文中的org.apache.tajo.master.querymaster.QueryMasterTask.QueryMasterTaskContext方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。