本文整理汇总了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));
}
示例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);
}
示例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();
}
示例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));
}
示例5: YarnResourceAllocator
import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public YarnResourceAllocator(QueryMasterTask.QueryMasterTaskContext queryTaskContext) {
this.queryTaskContext = queryTaskContext;
}
示例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;
}
示例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);
}
示例8: getMasterContext
import org.apache.tajo.master.querymaster.QueryMasterTask; //导入方法依赖的package包/类
public QueryMasterTask.QueryMasterTaskContext getMasterContext() {
return masterContext;
}
示例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();
}
示例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();
}