本文整理匯總了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;
}