use of org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProtoOrBuilder 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));
}
}
Aggregations