本文整理汇总了Java中org.apache.hadoop.yarn.api.records.Container.getContainerToken方法的典型用法代码示例。如果您正苦于以下问题:Java Container.getContainerToken方法的具体用法?Java Container.getContainerToken怎么用?Java Container.getContainerToken使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.hadoop.yarn.api.records.Container
的用法示例。
在下文中一共展示了Container.getContainerToken方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ContainerRemoteLaunchEvent
import org.apache.hadoop.yarn.api.records.Container; //导入方法依赖的package包/类
/**
* Create a ContainerRemoteLaunchEvent
* @param taskId task which the container is allocated to
* @param containerLaunchContext container launch context
* @param allocatedContainer container need to launch
*/
public ContainerRemoteLaunchEvent(Id taskId, ContainerLaunchContext containerLaunchContext,
Container allocatedContainer) {
super(taskId, allocatedContainer.getId(), StringInterner.weakIntern(allocatedContainer
.getNodeId().toString()), allocatedContainer.getContainerToken(),
ContainerLauncherEventType.CONTAINER_REMOTE_LAUNCH);
this.allocatedContainer = allocatedContainer;
this.containerLaunchContext = containerLaunchContext;
}
示例2: StartContainerEvent
import org.apache.hadoop.yarn.api.records.Container; //导入方法依赖的package包/类
public StartContainerEvent(Container container,
ContainerLaunchContext containerLaunchContext) {
super(container.getId(), container.getNodeId(),
container.getContainerToken(), ContainerEventType.START_CONTAINER);
this.container = container;
this.containerLaunchContext = containerLaunchContext;
}
示例3: ContainerRemoteLaunchEvent
import org.apache.hadoop.yarn.api.records.Container; //导入方法依赖的package包/类
public ContainerRemoteLaunchEvent(TaskAttemptId taskAttemptID,
ContainerLaunchContext containerLaunchContext,
Container allocatedContainer, Task remoteTask) {
super(taskAttemptID, allocatedContainer.getId(), StringInterner
.weakIntern(allocatedContainer.getNodeId().toString()),
allocatedContainer.getContainerToken(),
ContainerLauncher.EventType.CONTAINER_REMOTE_LAUNCH);
this.allocatedContainer = allocatedContainer;
this.containerLaunchContext = containerLaunchContext;
this.task = remoteTask;
}
示例4: createStartedContainer
import org.apache.hadoop.yarn.api.records.Container; //导入方法依赖的package包/类
protected synchronized StartedContainer createStartedContainer(
Container container) throws YarnException, IOException {
StartedContainer startedContainer = new StartedContainer(container.getId(),
container.getNodeId(), container.getContainerToken());
return startedContainer;
}