use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorsMapProto in project hadoop by apache.
the class NodeHeartbeatRequestPBImpl method initRegisteredCollectors.
private void initRegisteredCollectors() {
NodeHeartbeatRequestProtoOrBuilder p = viaProto ? proto : builder;
List<AppCollectorsMapProto> list = p.getRegisteredCollectorsList();
if (!list.isEmpty()) {
this.registeredCollectors = new HashMap<>();
for (AppCollectorsMapProto c : list) {
ApplicationId appId = convertFromProtoFormat(c.getAppId());
this.registeredCollectors.put(appId, c.getAppCollectorAddr());
}
}
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorsMapProto in project hadoop by apache.
the class ReportNewCollectorInfoRequestPBImpl method initLocalCollectorsList.
private void initLocalCollectorsList() {
ReportNewCollectorInfoRequestProtoOrBuilder p = viaProto ? proto : builder;
List<AppCollectorsMapProto> list = p.getAppCollectorsList();
this.collectorsList = new ArrayList<AppCollectorsMap>();
for (AppCollectorsMapProto m : list) {
this.collectorsList.add(convertFromProtoFormat(m));
}
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorsMapProto in project hadoop by apache.
the class ReportNewCollectorInfoRequestPBImpl method addLocalCollectorsToProto.
private void addLocalCollectorsToProto() {
maybeInitBuilder();
builder.clearAppCollectors();
List<AppCollectorsMapProto> protoList = new ArrayList<AppCollectorsMapProto>();
for (AppCollectorsMap m : this.collectorsList) {
protoList.add(convertToProtoFormat(m));
}
builder.addAllAppCollectors(protoList);
}
use of org.apache.hadoop.yarn.proto.YarnServerCommonServiceProtos.AppCollectorsMapProto in project hadoop by apache.
the class NodeHeartbeatResponsePBImpl method initAppCollectorsMap.
private void initAppCollectorsMap() {
NodeHeartbeatResponseProtoOrBuilder p = viaProto ? proto : builder;
List<AppCollectorsMapProto> list = p.getAppCollectorsMapList();
if (!list.isEmpty()) {
this.appCollectorsMap = new HashMap<>();
for (AppCollectorsMapProto c : list) {
ApplicationId appId = convertFromProtoFormat(c.getAppId());
this.appCollectorsMap.put(appId, c.getAppCollectorAddr());
}
}
}
Aggregations