use of org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateApplicationTimeoutsRequestProtoOrBuilder in project hadoop by apache.
the class UpdateApplicationTimeoutsRequestPBImpl method getApplicationId.
@Override
public ApplicationId getApplicationId() {
UpdateApplicationTimeoutsRequestProtoOrBuilder p = viaProto ? proto : builder;
if (this.applicationId != null) {
return applicationId;
}
// Else via proto
if (!p.hasApplicationId()) {
return null;
}
applicationId = convertFromProtoFormat(p.getApplicationId());
return applicationId;
}
use of org.apache.hadoop.yarn.proto.YarnServiceProtos.UpdateApplicationTimeoutsRequestProtoOrBuilder in project hadoop by apache.
the class UpdateApplicationTimeoutsRequestPBImpl method initApplicationTimeout.
private void initApplicationTimeout() {
if (this.applicationTimeouts != null) {
return;
}
UpdateApplicationTimeoutsRequestProtoOrBuilder p = viaProto ? proto : builder;
List<ApplicationUpdateTimeoutMapProto> lists = p.getApplicationTimeoutsList();
this.applicationTimeouts = new HashMap<ApplicationTimeoutType, String>(lists.size());
for (ApplicationUpdateTimeoutMapProto timeoutProto : lists) {
this.applicationTimeouts.put(ProtoUtils.convertFromProtoFormat(timeoutProto.getApplicationTimeoutType()), timeoutProto.getExpireTime());
}
}
Aggregations