private YarnApplicationAttemptStateProto convertToProtoFormat( YarnApplicationAttemptState state) { return ProtoUtils.convertToProtoFormat(state); }
private YarnApplicationAttemptState convertFromProtoFormat( YarnApplicationAttemptStateProto yarnApplicationAttemptState) { return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState); }
public static YarnApplicationAttemptStateProto convertToProtoFormat( YarnApplicationAttemptState e) { return YarnApplicationAttemptStateProto .valueOf(YARN_APPLICATION_ATTEMPT_STATE_PREFIX + e.name()); }
public static YarnApplicationAttemptState convertFromProtoFormat( YarnApplicationAttemptStateProto e) { return YarnApplicationAttemptState.valueOf(e.name().replace( YARN_APPLICATION_ATTEMPT_STATE_PREFIX, "")); }