Search in sources :

Example 1 with GetApplicationsRequestProtoOrBuilder

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

the class GetApplicationsRequestPBImpl method initUsers.

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

Example 2 with GetApplicationsRequestProtoOrBuilder

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

the class GetApplicationsRequestPBImpl method getStartRange.

@Override
public LongRange getStartRange() {
    if (this.start == null) {
        GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
        if (p.hasStartBegin() || p.hasStartEnd()) {
            long begin = p.hasStartBegin() ? p.getStartBegin() : 0L;
            long end = p.hasStartEnd() ? p.getStartEnd() : Long.MAX_VALUE;
            this.start = new LongRange(begin, end);
        }
    }
    return this.start;
}
Also used : LongRange(org.apache.commons.lang.math.LongRange) GetApplicationsRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder)

Example 3 with GetApplicationsRequestProtoOrBuilder

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

the class GetApplicationsRequestPBImpl method getFinishRange.

@Override
public LongRange getFinishRange() {
    if (this.finish == null) {
        GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
        if (p.hasFinishBegin() || p.hasFinishEnd()) {
            long begin = p.hasFinishBegin() ? p.getFinishBegin() : 0L;
            long end = p.hasFinishEnd() ? p.getFinishEnd() : Long.MAX_VALUE;
            this.finish = new LongRange(begin, end);
        }
    }
    return this.finish;
}
Also used : LongRange(org.apache.commons.lang.math.LongRange) GetApplicationsRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder)

Example 4 with GetApplicationsRequestProtoOrBuilder

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

the class GetApplicationsRequestPBImpl method getLimit.

@Override
public long getLimit() {
    if (this.limit == Long.MAX_VALUE) {
        GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
        this.limit = p.hasLimit() ? p.getLimit() : Long.MAX_VALUE;
    }
    return this.limit;
}
Also used : GetApplicationsRequestProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServiceProtos.GetApplicationsRequestProtoOrBuilder)

Example 5 with GetApplicationsRequestProtoOrBuilder

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

the class GetApplicationsRequestPBImpl method initQueues.

private void initQueues() {
    if (this.queues != null) {
        return;
    }
    GetApplicationsRequestProtoOrBuilder p = viaProto ? proto : builder;
    List<String> queuesList = p.getQueuesList();
    this.queues = new HashSet<String>();
    this.queues.addAll(queuesList);
}
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