use of org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtoOrBuilder in project hadoop by apache.
the class ApplicationAttemptStateDataPBImpl method getMasterContainer.
@Override
public Container getMasterContainer() {
ApplicationAttemptStateDataProtoOrBuilder p = viaProto ? proto : builder;
if (masterContainer != null) {
return masterContainer;
}
if (!p.hasMasterContainer()) {
return null;
}
masterContainer = new ContainerPBImpl(p.getMasterContainer());
return masterContainer;
}
use of org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtoOrBuilder in project hadoop by apache.
the class ApplicationAttemptStateDataPBImpl method getAttemptId.
@Override
public ApplicationAttemptId getAttemptId() {
ApplicationAttemptStateDataProtoOrBuilder p = viaProto ? proto : builder;
if (attemptId != null) {
return attemptId;
}
if (!p.hasAttemptId()) {
return null;
}
attemptId = new ApplicationAttemptIdPBImpl(p.getAttemptId());
return attemptId;
}
use of org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtoOrBuilder in project hadoop by apache.
the class ApplicationAttemptStateDataPBImpl method getAppAttemptTokens.
@Override
public Credentials getAppAttemptTokens() {
ApplicationAttemptStateDataProtoOrBuilder p = viaProto ? proto : builder;
if (appAttemptTokens != null) {
return convertCredentialsFromByteBuffer(appAttemptTokens);
}
if (!p.hasAppAttemptTokens()) {
return null;
}
this.appAttemptTokens = ProtoUtils.convertFromProtoFormat(p.getAppAttemptTokens());
return convertCredentialsFromByteBuffer(appAttemptTokens);
}
Aggregations