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