Search in sources :

Example 1 with ApplicationReportProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.

the class ApplicationReportPBImpl method getPriority.

@Override
public Priority getPriority() {
    ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
    if (this.priority != null) {
        return this.priority;
    }
    if (!p.hasPriority()) {
        return null;
    }
    this.priority = convertFromProtoFormat(p.getPriority());
    return this.priority;
}
Also used : ApplicationReportProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder)

Example 2 with ApplicationReportProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.

the class ApplicationReportPBImpl method initApplicationTags.

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

Example 3 with ApplicationReportProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.

the class ApplicationReportPBImpl method initApplicationTimeout.

private void initApplicationTimeout() {
    if (this.applicationTimeouts != null) {
        return;
    }
    ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
    List<AppTimeoutsMapProto> lists = p.getAppTimeoutsList();
    this.applicationTimeouts = new HashMap<ApplicationTimeoutType, ApplicationTimeout>(lists.size());
    for (AppTimeoutsMapProto timeoutProto : lists) {
        this.applicationTimeouts.put(ProtoUtils.convertFromProtoFormat(timeoutProto.getApplicationTimeoutType()), convertFromProtoFormat(timeoutProto.getApplicationTimeout()));
    }
}
Also used : ApplicationReportProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder) ApplicationTimeoutType(org.apache.hadoop.yarn.api.records.ApplicationTimeoutType) ApplicationTimeout(org.apache.hadoop.yarn.api.records.ApplicationTimeout) AppTimeoutsMapProto(org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto)

Example 4 with ApplicationReportProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.

the class ApplicationReportPBImpl method getApplicationId.

@Override
public ApplicationId getApplicationId() {
    if (this.applicationId != null) {
        return this.applicationId;
    }
    ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
    if (!p.hasApplicationId()) {
        return null;
    }
    this.applicationId = convertFromProtoFormat(p.getApplicationId());
    return this.applicationId;
}
Also used : ApplicationReportProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder)

Example 5 with ApplicationReportProtoOrBuilder

use of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder in project hadoop by apache.

the class ApplicationReportPBImpl method getClientToAMToken.

@Override
public Token getClientToAMToken() {
    ApplicationReportProtoOrBuilder p = viaProto ? proto : builder;
    if (this.clientToAMToken != null) {
        return this.clientToAMToken;
    }
    if (!p.hasClientToAmToken()) {
        return null;
    }
    this.clientToAMToken = convertFromProtoFormat(p.getClientToAmToken());
    return this.clientToAMToken;
}
Also used : ApplicationReportProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder)

Aggregations

ApplicationReportProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProtoOrBuilder)7 ApplicationTimeout (org.apache.hadoop.yarn.api.records.ApplicationTimeout)1 ApplicationTimeoutType (org.apache.hadoop.yarn.api.records.ApplicationTimeoutType)1 AppTimeoutsMapProto (org.apache.hadoop.yarn.proto.YarnProtos.AppTimeoutsMapProto)1