Search in sources :

Example 1 with LocalizerStatusProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.LocalizerStatusProtoOrBuilder in project hadoop by apache.

the class LocalizerStatusPBImpl method initResources.

private void initResources() {
    if (this.resources != null) {
        return;
    }
    LocalizerStatusProtoOrBuilder p = viaProto ? proto : builder;
    List<LocalResourceStatusProto> list = p.getResourcesList();
    this.resources = new ArrayList<LocalResourceStatus>();
    for (LocalResourceStatusProto c : list) {
        this.resources.add(convertFromProtoFormat(c));
    }
}
Also used : LocalResourceStatusProto(org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.LocalResourceStatusProto) LocalizerStatusProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.LocalizerStatusProtoOrBuilder) LocalResourceStatus(org.apache.hadoop.yarn.server.nodemanager.api.protocolrecords.LocalResourceStatus)

Aggregations

LocalResourceStatusProto (org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.LocalResourceStatusProto)1 LocalizerStatusProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.LocalizerStatusProtoOrBuilder)1 LocalResourceStatus (org.apache.hadoop.yarn.server.nodemanager.api.protocolrecords.LocalResourceStatus)1