当前位置: 首页>>代码示例>>Java>>正文


Java Container.getContainerToken方法代码示例

本文整理汇总了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;
}
 
开发者ID:Tencent,项目名称:angel,代码行数:15,代码来源:ContainerRemoteLaunchEvent.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:8,代码来源:NMClientAsyncImpl.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:12,代码来源:ContainerRemoteLaunchEvent.java

示例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;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:7,代码来源:NMClientImpl.java


注:本文中的org.apache.hadoop.yarn.api.records.Container.getContainerToken方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。