本文整理汇总了Java中org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder类的典型用法代码示例。如果您正苦于以下问题:Java ContainerProtoOrBuilder类的具体用法?Java ContainerProtoOrBuilder怎么用?Java ContainerProtoOrBuilder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ContainerProtoOrBuilder类属于org.apache.hadoop.yarn.proto.YarnProtos包,在下文中一共展示了ContainerProtoOrBuilder类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getId
import org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder; //导入依赖的package包/类
@Override
public ContainerId getId() {
ContainerProtoOrBuilder p = viaProto ? proto : builder;
if (this.containerId != null) {
return this.containerId;
}
if (!p.hasId()) {
return null;
}
this.containerId = convertFromProtoFormat(p.getId());
return this.containerId;
}
示例2: getNodeId
import org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder; //导入依赖的package包/类
@Override
public NodeId getNodeId() {
ContainerProtoOrBuilder p = viaProto ? proto : builder;
if (this.nodeId != null) {
return this.nodeId;
}
if (!p.hasNodeId()) {
return null;
}
this.nodeId = convertFromProtoFormat(p.getNodeId());
return this.nodeId;
}
示例3: getNodeHttpAddress
import org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder; //导入依赖的package包/类
@Override
public String getNodeHttpAddress() {
ContainerProtoOrBuilder p = viaProto ? proto : builder;
if (!p.hasNodeHttpAddress()) {
return null;
}
return (p.getNodeHttpAddress());
}
示例4: getResource
import org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder; //导入依赖的package包/类
@Override
public Resource getResource() {
ContainerProtoOrBuilder p = viaProto ? proto : builder;
if (this.resource != null) {
return this.resource;
}
if (!p.hasResource()) {
return null;
}
this.resource = convertFromProtoFormat(p.getResource());
return this.resource;
}
示例5: getPriority
import org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder; //导入依赖的package包/类
@Override
public Priority getPriority() {
ContainerProtoOrBuilder p = viaProto ? proto : builder;
if (this.priority != null) {
return this.priority;
}
if (!p.hasPriority()) {
return null;
}
this.priority = convertFromProtoFormat(p.getPriority());
return this.priority;
}
示例6: getContainerToken
import org.apache.hadoop.yarn.proto.YarnProtos.ContainerProtoOrBuilder; //导入依赖的package包/类
@Override
public Token getContainerToken() {
ContainerProtoOrBuilder p = viaProto ? proto : builder;
if (this.containerToken != null) {
return this.containerToken;
}
if (!p.hasContainerToken()) {
return null;
}
this.containerToken = convertFromProtoFormat(p.getContainerToken());
return this.containerToken;
}