use of org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder in project hadoop by apache.
the class NodeStatusPBImpl method getIncreasedContainers.
@Override
public synchronized List<Container> getIncreasedContainers() {
if (increasedContainers != null) {
return increasedContainers;
}
NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerProto> list = p.getIncreasedContainersList();
this.increasedContainers = new ArrayList<>();
for (ContainerProto c : list) {
this.increasedContainers.add(convertFromProtoFormat(c));
}
return this.increasedContainers;
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder in project hadoop by apache.
the class NodeStatusPBImpl method getNodeHealthStatus.
@Override
public synchronized NodeHealthStatus getNodeHealthStatus() {
NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
if (nodeHealthStatus != null) {
return nodeHealthStatus;
}
if (!p.hasNodeHealthStatus()) {
return null;
}
nodeHealthStatus = convertFromProtoFormat(p.getNodeHealthStatus());
return nodeHealthStatus;
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder in project hadoop by apache.
the class NodeStatusPBImpl method getNodeId.
@Override
public synchronized NodeId getNodeId() {
NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
if (this.nodeId != null) {
return this.nodeId;
}
if (!p.hasNodeId()) {
return null;
}
this.nodeId = convertFromProtoFormat(p.getNodeId());
return this.nodeId;
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder in project hadoop by apache.
the class NodeStatusPBImpl method initContainers.
private synchronized void initContainers() {
if (this.containers != null) {
return;
}
NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
List<ContainerStatusProto> list = p.getContainersStatusesList();
this.containers = new ArrayList<ContainerStatus>();
for (ContainerStatusProto c : list) {
this.containers.add(convertFromProtoFormat(c));
}
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonProtos.NodeStatusProtoOrBuilder in project hadoop by apache.
the class NodeStatusPBImpl method initKeepAliveApplications.
private synchronized void initKeepAliveApplications() {
if (this.keepAliveApplications != null) {
return;
}
NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
List<ApplicationIdProto> list = p.getKeepAliveApplicationsList();
this.keepAliveApplications = new ArrayList<ApplicationId>();
for (ApplicationIdProto c : list) {
this.keepAliveApplications.add(convertFromProtoFormat(c));
}
}
Aggregations