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


Java ContainerStartDataProtoOrBuilder类代码示例

本文整理汇总了Java中org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerStartDataProtoOrBuilder的典型用法代码示例。如果您正苦于以下问题:Java ContainerStartDataProtoOrBuilder类的具体用法?Java ContainerStartDataProtoOrBuilder怎么用?Java ContainerStartDataProtoOrBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ContainerStartDataProtoOrBuilder类属于org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos包,在下文中一共展示了ContainerStartDataProtoOrBuilder类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getContainerId

import org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerStartDataProtoOrBuilder; //导入依赖的package包/类
@Override
public ContainerId getContainerId() {
  if (this.containerId != null) {
    return this.containerId;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasContainerId()) {
    return null;
  }
  this.containerId = convertFromProtoFormat(p.getContainerId());
  return this.containerId;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:ContainerStartDataPBImpl.java

示例2: getAllocatedResource

import org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerStartDataProtoOrBuilder; //导入依赖的package包/类
@Override
public Resource getAllocatedResource() {
  if (this.resource != null) {
    return this.resource;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasAllocatedResource()) {
    return null;
  }
  this.resource = convertFromProtoFormat(p.getAllocatedResource());
  return this.resource;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:ContainerStartDataPBImpl.java

示例3: getAssignedNode

import org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerStartDataProtoOrBuilder; //导入依赖的package包/类
@Override
public NodeId getAssignedNode() {
  if (this.nodeId != null) {
    return this.nodeId;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasAssignedNodeId()) {
    return null;
  }
  this.nodeId = convertFromProtoFormat(p.getAssignedNodeId());
  return this.nodeId;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:ContainerStartDataPBImpl.java

示例4: getPriority

import org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerStartDataProtoOrBuilder; //导入依赖的package包/类
@Override
public Priority getPriority() {
  if (this.priority != null) {
    return this.priority;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasPriority()) {
    return null;
  }
  this.priority = convertFromProtoFormat(p.getPriority());
  return this.priority;
}
 
开发者ID:naver,项目名称:hadoop,代码行数:13,代码来源:ContainerStartDataPBImpl.java

示例5: getStartTime

import org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerStartDataProtoOrBuilder; //导入依赖的package包/类
@Override
public long getStartTime() {
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  return p.getStartTime();
}
 
开发者ID:naver,项目名称:hadoop,代码行数:6,代码来源:ContainerStartDataPBImpl.java


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