Search in sources :

Example 1 with ContainerReportProto

use of org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto in project hadoop by apache.

the class GetContainersResponsePBImpl method initLocalContainerList.

// Once this is called. containerList will never be null - until a getProto
// is called.
private void initLocalContainerList() {
    if (this.containerList != null) {
        return;
    }
    GetContainersResponseProtoOrBuilder p = viaProto ? proto : builder;
    List<ContainerReportProto> list = p.getContainersList();
    containerList = new ArrayList<ContainerReport>();
    for (ContainerReportProto c : list) {
        containerList.add(convertFromProtoFormat(c));
    }
}
Also used : ContainerReport(org.apache.hadoop.yarn.api.records.ContainerReport) ContainerReportProto(org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto) GetContainersResponseProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProtoOrBuilder)

Aggregations

ContainerReport (org.apache.hadoop.yarn.api.records.ContainerReport)1 ContainerReportProto (org.apache.hadoop.yarn.proto.YarnProtos.ContainerReportProto)1 GetContainersResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetContainersResponseProtoOrBuilder)1