use of org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto in project hadoop by apache.
the class GetClusterNodesResponsePBImpl method initLocalNodeManagerInfosList.
// Once this is called. containerList will never be null - until a getProto
// is called.
private void initLocalNodeManagerInfosList() {
if (this.nodeManagerInfoList != null) {
return;
}
GetClusterNodesResponseProtoOrBuilder p = viaProto ? proto : builder;
List<NodeReportProto> list = p.getNodeReportsList();
nodeManagerInfoList = new ArrayList<NodeReport>();
for (NodeReportProto a : list) {
nodeManagerInfoList.add(convertFromProtoFormat(a));
}
}
use of org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto in project hadoop by apache.
the class AllocateResponsePBImpl method initLocalNewNodeReportList.
// Once this is called. updatedNodes will never be null - until a getProto is
// called.
private synchronized void initLocalNewNodeReportList() {
if (this.updatedNodes != null) {
return;
}
AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
List<NodeReportProto> list = p.getUpdatedNodesList();
updatedNodes = new ArrayList<NodeReport>(list.size());
for (NodeReportProto n : list) {
updatedNodes.add(convertFromProtoFormat(n));
}
}
Aggregations