Example #1
0
 public synchronized void setApplicationId(ApplicationId appId) {
   maybeInitBuilder();
   if (appId == null) builder.clearApplicationId();
   this.applicationId = appId;
 }
Example #2
0
 public synchronized void setAttemptId(int attemptId) {
   maybeInitBuilder();
   builder.setAttemptId((attemptId));
 }
Example #3
0
 private synchronized void mergeLocalToBuilder() {
   if (this.applicationId != null
       && !((ApplicationIdPBImpl) applicationId).getProto().equals(builder.getApplicationId())) {
     builder.setApplicationId(convertToProtoFormat(this.applicationId));
   }
 }
Example #4
0
 private synchronized void mergeLocalToProto() {
   if (viaProto) maybeInitBuilder();
   mergeLocalToBuilder();
   proto = builder.build();
   viaProto = true;
 }
Example #5
0
 public synchronized ApplicationAttemptIdProto getProto() {
   mergeLocalToProto();
   proto = viaProto ? proto : builder.build();
   viaProto = true;
   return proto;
 }