org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto Java Examples

The following examples show how to use org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ApplicationAttemptFinishDataPBImpl.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example #2
Source File: ApplicationAttemptFinishDataPBImpl.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
Example #3
Source File: ApplicationAttemptReportPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example #4
Source File: ApplicationAttemptReportPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
Example #5
Source File: ProtoUtils.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public static YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState e) {
  return YarnApplicationAttemptStateProto
      .valueOf(YARN_APPLICATION_ATTEMPT_STATE_PREFIX + e.name());
}
 
Example #6
Source File: ProtoUtils.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public static YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto e) {
  return YarnApplicationAttemptState.valueOf(e.name().replace(
      YARN_APPLICATION_ATTEMPT_STATE_PREFIX, ""));
}
 
Example #7
Source File: ApplicationAttemptFinishDataPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example #8
Source File: ApplicationAttemptFinishDataPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
Example #9
Source File: ApplicationAttemptReportPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example #10
Source File: ApplicationAttemptReportPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
Example #11
Source File: ProtoUtils.java    From big-c with Apache License 2.0 4 votes vote down vote up
public static YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState e) {
  return YarnApplicationAttemptStateProto
      .valueOf(YARN_APPLICATION_ATTEMPT_STATE_PREFIX + e.name());
}
 
Example #12
Source File: ProtoUtils.java    From big-c with Apache License 2.0 4 votes vote down vote up
public static YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto e) {
  return YarnApplicationAttemptState.valueOf(e.name().replace(
      YARN_APPLICATION_ATTEMPT_STATE_PREFIX, ""));
}
 
Example #13
Source File: ApplicationAttemptFinishDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example #14
Source File: ApplicationAttemptFinishDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}