@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; }
@Override public ApplicationId getApplicationId() { ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; if (this.applicationId != null) { return applicationId; } // Else via proto if (!p.hasApplicationId()) { return null; } applicationId = convertFromProtoFormat(p.getApplicationId()); return applicationId; }
@Override public String getApplicationName() { ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasApplicationName()) { return null; } return (p.getApplicationName()); }
@Override public String getQueue() { ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasQueue()) { return null; } return (p.getQueue()); }
@Override public String getApplicationType() { ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasApplicationType()) { return null; } return (p.getApplicationType()); }
private void initApplicationTags() { if (this.applicationTags != null) { return; } ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; this.applicationTags = new HashSet<String>(); this.applicationTags.addAll(p.getApplicationTagsList()); }
@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; }
@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; }
@Override public ReservationId getReservationID() { ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; if (reservationId != null) { return reservationId; } if (!p.hasReservationId()) { return null; } reservationId = convertFromProtoFormat(p.getReservationId()); return reservationId; }
@Override public String getNodeLabelExpression() { ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasNodeLabelExpression()) { return null; } return p.getNodeLabelExpression(); }
@Override public ResourceRequest getAMContainerResourceRequest() { ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; if (this.amResourceRequest != null) { return amResourceRequest; } // Else via proto if (!p.hasAmContainerResourceRequest()) { return null; } amResourceRequest = convertFromProtoFormat(p.getAmContainerResourceRequest()); return amResourceRequest; }
@Override public LogAggregationContext getLogAggregationContext() { ApplicationSubmissionContextProtoOrBuilder p = viaProto ? proto : builder; if (this.logAggregationContext != null) { return this.logAggregationContext; } // Else via proto if (!p.hasLogAggregationContext()) { return null; } logAggregationContext = convertFromProtoFormat(p.getLogAggregationContext()); return logAggregationContext; }