本文整理汇总了Java中org.apache.tajo.master.TajoContainerProxy类的典型用法代码示例。如果您正苦于以下问题:Java TajoContainerProxy类的具体用法?Java TajoContainerProxy怎么用?Java TajoContainerProxy使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TajoContainerProxy类属于org.apache.tajo.master包,在下文中一共展示了TajoContainerProxy类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: launchTaskRunners
import org.apache.tajo.master.TajoContainerProxy; //导入依赖的package包/类
private void launchTaskRunners(ExecutionBlockId executionBlockId, Collection<Container> containers) {
// Query in standby mode doesn't need launch Worker.
// But, Assign ExecutionBlock to assigned tajo worker
for(Container eachContainer: containers) {
TajoContainerProxy containerProxy = new TajoContainerProxy(queryTaskContext, tajoConf,
eachContainer, executionBlockId);
executorService.submit(new LaunchRunner(eachContainer.getId(), containerProxy));
}
}
示例2: handle
import org.apache.tajo.master.TajoContainerProxy; //导入依赖的package包/类
@Override
public void handle(LocalTaskEvent event) {
TajoContainerProxy proxy = (TajoContainerProxy) resourceAllocator.getContainers().get(event.getContainerId());
if (proxy != null) {
proxy.killTaskAttempt(event.getTaskAttemptId());
}
}
示例3: handle
import org.apache.tajo.master.TajoContainerProxy; //导入依赖的package包/类
@Override
public void handle(LocalTaskEvent event) {
TajoContainerProxy proxy = (TajoContainerProxy) resourceAllocator.getContainers().get(event.getContainerId());
proxy.killTaskAttempt(event.getTaskAttemptId());
}