Search in sources :

Example 1 with GetClusterNodesResponseProtoOrBuilder

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));
    }
}
Also used : GetClusterNodesResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProtoOrBuilder) NodeReportProto(org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto) NodeReport(org.apache.hadoop.yarn.api.records.NodeReport)

Aggregations

NodeReport (org.apache.hadoop.yarn.api.records.NodeReport)1 NodeReportProto (org.apache.hadoop.yarn.proto.YarnProtos.NodeReportProto)1 GetClusterNodesResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetClusterNodesResponseProtoOrBuilder)1