use of org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto in project hadoop by apache.
the class GetApplicationsRequestPBImpl method initApplicationStates.
private void initApplicationStates() {
if (this.applicationStates != null) {
return;
}
GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
List<YarnApplicationStateProto> appStatesList = p.getApplicationStatesList();
this.applicationStates = EnumSet.noneOf(YarnApplicationState.class);
for (YarnApplicationStateProto c : appStatesList) {
this.applicationStates.add(ProtoUtils.convertFromProtoFormat(c));
}
}
Aggregations