Search in sources :

Example 6 with GetApplicationsRequestProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder 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));
    }
}
Also used : YarnApplicationStateProto(org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto) YarnApplicationState(org.apache.hadoop.yarn.api.records.YarnApplicationState) GetApplicationsRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder)

Example 7 with GetApplicationsRequestProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder in project hadoop by apache.

the class GetApplicationsRequestPBImpl method initApplicationTags.

private void initApplicationTags() {
    if (this.applicationTags != null) {
        return;
    }
    GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
    this.applicationTags = new HashSet<String>();
    this.applicationTags.addAll(p.getApplicationTagsList());
}
Also used : GetApplicationsRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder)

Example 8 with GetApplicationsRequestProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder in project hadoop by apache.

the class GetApplicationsRequestPBImpl method initApplicationTypes.

private void initApplicationTypes() {
    if (this.applicationTypes != null) {
        return;
    }
    GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
    List<String> appTypeList = p.getApplicationTypesList();
    this.applicationTypes = new HashSet<String>();
    this.applicationTypes.addAll(appTypeList);
}
Also used : GetApplicationsRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder)

Example 9 with GetApplicationsRequestProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder in project hadoop by apache.

the class GetApplicationsRequestPBImpl method initScope.

private void initScope() {
    if (this.scope != null) {
        return;
    }
    GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
    this.scope = ProtoUtils.convertFromProtoFormat(p.getScope());
}
Also used : GetApplicationsRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder)

Aggregations

GetApplicationsRequestProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder)9 LongRange (org.apache.commons.lang.math.LongRange)2 YarnApplicationState (org.apache.hadoop.yarn.api.records.YarnApplicationState)1 YarnApplicationStateProto (org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto)1