當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。