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