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

The following examples show how to use org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto. These examples are extracted from open source projects. 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
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example 2
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
Example 3
Source Project: hadoop   Source File: ApplicationAttemptReportPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example 4
Source Project: hadoop   Source File: ApplicationAttemptReportPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
Example 5
Source Project: hadoop   Source File: ProtoUtils.java    License: 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 Project: hadoop   Source File: ProtoUtils.java    License: 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 Project: hadoop   Source File: ApplicationAttemptFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example 8
Source Project: hadoop   Source File: ApplicationAttemptFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
Example 9
Source Project: big-c   Source File: ApplicationAttemptReportPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example 10
Source Project: big-c   Source File: ApplicationAttemptReportPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}
 
Example 11
Source Project: big-c   Source File: ProtoUtils.java    License: 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 Project: big-c   Source File: ProtoUtils.java    License: 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 Project: big-c   Source File: ApplicationAttemptFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptStateProto convertToProtoFormat(
    YarnApplicationAttemptState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example 14
Source Project: big-c   Source File: ApplicationAttemptFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private YarnApplicationAttemptState convertFromProtoFormat(
    YarnApplicationAttemptStateProto yarnApplicationAttemptState) {
  return ProtoUtils.convertFromProtoFormat(yarnApplicationAttemptState);
}