本文整理汇总了Java中org.apache.tajo.master.ContainerProxy类的典型用法代码示例。如果您正苦于以下问题:Java ContainerProxy类的具体用法?Java ContainerProxy怎么用?Java ContainerProxy使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ContainerProxy类属于org.apache.tajo.master包,在下文中一共展示了ContainerProxy类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: stop
import org.apache.tajo.master.ContainerProxy; //导入依赖的package包/类
@Override
public synchronized void stop() {
if (stopped.getAndSet(true)) {
return;
}
executorService.shutdownNow();
Map<ContainerId, ContainerProxy> containers = queryTaskContext.getResourceAllocator().getContainers();
List<ContainerProxy> list = new ArrayList<ContainerProxy>(containers.values());
for(ContainerProxy eachProxy: list) {
try {
eachProxy.stopContainer();
} catch (Exception e) {
LOG.warn(e.getMessage());
}
}
super.stop();
}
示例2: LaunchRunner
import org.apache.tajo.master.ContainerProxy; //导入依赖的package包/类
public LaunchRunner(ContainerId id, ContainerProxy proxy) {
this.proxy = proxy;
this.id = id;
}
示例3: stopContainers
import org.apache.tajo.master.ContainerProxy; //导入依赖的package包/类
private void stopContainers(Collection<Container> containers) {
for (Container container : containers) {
final ContainerProxy proxy = queryTaskContext.getResourceAllocator().getContainer(container.getId());
executorService.submit(new StopContainerRunner(container.getId(), proxy));
}
}
示例4: StopContainerRunner
import org.apache.tajo.master.ContainerProxy; //导入依赖的package包/类
public StopContainerRunner(ContainerId id, ContainerProxy proxy) {
this.id = id;
this.proxy = proxy;
}
示例5: addContainer
import org.apache.tajo.master.ContainerProxy; //导入依赖的package包/类
public void addContainer(ContainerId cId, ContainerProxy container) {
containers.put(cId, container);
}
示例6: getContainer
import org.apache.tajo.master.ContainerProxy; //导入依赖的package包/类
public ContainerProxy getContainer(ContainerId cId) {
return containers.get(cId);
}
示例7: getContainers
import org.apache.tajo.master.ContainerProxy; //导入依赖的package包/类
public Map<ContainerId, ContainerProxy> getContainers() {
return containers;
}