Search in sources :

Example 6 with ApplicationSubmissionContextProtoOrBuilder

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

the class ApplicationSubmissionContextPBImpl method getResource.

@Override
public Resource getResource() {
    ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder;
    if (this.resource != null) {
        return this.resource;
    }
    if (!p.hasResource()) {
        return null;
    }
    this.resource = convertFromProtoFormat(p.getResource());
    return this.resource;
}
Also used : ApplicationSubmissionContextProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder)

Example 7 with ApplicationSubmissionContextProtoOrBuilder

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

the class ApplicationSubmissionContextPBImpl method getAMContainerSpec.

@Override
public ContainerLaunchContext getAMContainerSpec() {
    ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder;
    if (this.amContainer != null) {
        return amContainer;
    }
    // Else via proto
    if (!p.hasAmContainerSpec()) {
        return null;
    }
    amContainer = convertFromProtoFormat(p.getAmContainerSpec());
    return amContainer;
}
Also used : ApplicationSubmissionContextProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder)

Example 8 with ApplicationSubmissionContextProtoOrBuilder

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

the class ApplicationSubmissionContextPBImpl method getPriority.

@Override
public Priority getPriority() {
    ApplicationSubmissionContextProtoOrBuilder 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 : ApplicationSubmissionContextProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder)

Example 9 with ApplicationSubmissionContextProtoOrBuilder

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

the class ApplicationSubmissionContextPBImpl method initApplicationTags.

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

Aggregations

ApplicationSubmissionContextProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationSubmissionContextProtoOrBuilder)9 ApplicationTimeoutType (org.apache.hadoop.yarn.api.records.ApplicationTimeoutType)1 ApplicationTimeoutMapProto (org.apache.hadoop.yarn.proto.YarnProtos.ApplicationTimeoutMapProto)1