Search in sources :

Example 1 with LocalizerHeartbeatResponseProtoOrBuilder

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

the class LocalizerHeartbeatResponsePBImpl method initResources.

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

Aggregations

LocalizerHeartbeatResponseProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.LocalizerHeartbeatResponseProtoOrBuilder)1 ResourceLocalizationSpecProto (org.apache.hadoop.yarn.proto.YarnServerNodemanagerServiceProtos.ResourceLocalizationSpecProto)1 ResourceLocalizationSpec (org.apache.hadoop.yarn.server.nodemanager.api.ResourceLocalizationSpec)1