Search in sources :

Example 1 with ApplicationAttemptStateDataProtoOrBuilder

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;
}
Also used : ContainerPBImpl(org.apache.hadoop.yarn.api.records.impl.pb.ContainerPBImpl) ApplicationAttemptStateDataProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtoOrBuilder)

Example 2 with ApplicationAttemptStateDataProtoOrBuilder

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;
}
Also used : ApplicationAttemptIdPBImpl(org.apache.hadoop.yarn.api.records.impl.pb.ApplicationAttemptIdPBImpl) ApplicationAttemptStateDataProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtoOrBuilder)

Example 3 with ApplicationAttemptStateDataProtoOrBuilder

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);
}
Also used : ApplicationAttemptStateDataProtoOrBuilder(org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtoOrBuilder)

Aggregations

ApplicationAttemptStateDataProtoOrBuilder (org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProtoOrBuilder)3 ApplicationAttemptIdPBImpl (org.apache.hadoop.yarn.api.records.impl.pb.ApplicationAttemptIdPBImpl)1 ContainerPBImpl (org.apache.hadoop.yarn.api.records.impl.pb.ContainerPBImpl)1