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

The following examples show how to use org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto. 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
Source Project: ambari-metrics   Source File: ContainerFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto convertToProtoFormat(ContainerState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example 2
Source Project: ambari-metrics   Source File: ContainerFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(
    ContainerStateProto containerState) {
  return ProtoUtils.convertFromProtoFormat(containerState);
}
 
Example 3
Source Project: hadoop   Source File: ProtoUtils.java    License: Apache License 2.0 4 votes vote down vote up
public static ContainerStateProto convertToProtoFormat(ContainerState e) {
  return ContainerStateProto.valueOf(CONTAINER_STATE_PREFIX + e.name());
}
 
Example 4
Source Project: hadoop   Source File: ProtoUtils.java    License: Apache License 2.0 4 votes vote down vote up
public static ContainerState convertFromProtoFormat(ContainerStateProto e) {
  return ContainerState.valueOf(e.name().replace(CONTAINER_STATE_PREFIX, ""));
}
 
Example 5
Source Project: hadoop   Source File: ContainerReportPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto
    convertToProtoFormat(ContainerState containerState) {
  return ProtoUtils.convertToProtoFormat(containerState);
}
 
Example 6
Source Project: hadoop   Source File: ContainerReportPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(
    ContainerStateProto containerState) {
  return ProtoUtils.convertFromProtoFormat(containerState);
}
 
Example 7
Source Project: hadoop   Source File: ContainerStatusPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto convertToProtoFormat(ContainerState e) {
  return ProtoUtils.convertToProtoFormat(e);
}
 
Example 8
Source Project: hadoop   Source File: ContainerStatusPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(ContainerStateProto e) {
  return ProtoUtils.convertFromProtoFormat(e);
}
 
Example 9
Source Project: hadoop   Source File: NMContainerStatusPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto
    convertToProtoFormat(ContainerState containerState) {
  return ProtoUtils.convertToProtoFormat(containerState);
}
 
Example 10
Source Project: hadoop   Source File: NMContainerStatusPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(
    ContainerStateProto containerState) {
  return ProtoUtils.convertFromProtoFormat(containerState);
}
 
Example 11
Source Project: hadoop   Source File: ContainerFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto convertToProtoFormat(ContainerState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example 12
Source Project: hadoop   Source File: ContainerFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(
    ContainerStateProto containerState) {
  return ProtoUtils.convertFromProtoFormat(containerState);
}
 
Example 13
Source Project: big-c   Source File: ProtoUtils.java    License: Apache License 2.0 4 votes vote down vote up
public static ContainerStateProto convertToProtoFormat(ContainerState e) {
  return ContainerStateProto.valueOf(CONTAINER_STATE_PREFIX + e.name());
}
 
Example 14
Source Project: big-c   Source File: ProtoUtils.java    License: Apache License 2.0 4 votes vote down vote up
public static ContainerState convertFromProtoFormat(ContainerStateProto e) {
  return ContainerState.valueOf(e.name().replace(CONTAINER_STATE_PREFIX, ""));
}
 
Example 15
Source Project: big-c   Source File: ContainerReportPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto
    convertToProtoFormat(ContainerState containerState) {
  return ProtoUtils.convertToProtoFormat(containerState);
}
 
Example 16
Source Project: big-c   Source File: ContainerReportPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(
    ContainerStateProto containerState) {
  return ProtoUtils.convertFromProtoFormat(containerState);
}
 
Example 17
Source Project: big-c   Source File: ContainerStatusPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto convertToProtoFormat(ContainerState e) {
  return ProtoUtils.convertToProtoFormat(e);
}
 
Example 18
Source Project: big-c   Source File: ContainerStatusPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(ContainerStateProto e) {
  return ProtoUtils.convertFromProtoFormat(e);
}
 
Example 19
Source Project: big-c   Source File: NMContainerStatusPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto
    convertToProtoFormat(ContainerState containerState) {
  return ProtoUtils.convertToProtoFormat(containerState);
}
 
Example 20
Source Project: big-c   Source File: NMContainerStatusPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(
    ContainerStateProto containerState) {
  return ProtoUtils.convertFromProtoFormat(containerState);
}
 
Example 21
Source Project: big-c   Source File: ContainerFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerStateProto convertToProtoFormat(ContainerState state) {
  return ProtoUtils.convertToProtoFormat(state);
}
 
Example 22
Source Project: big-c   Source File: ContainerFinishDataPBImpl.java    License: Apache License 2.0 4 votes vote down vote up
private ContainerState convertFromProtoFormat(
    ContainerStateProto containerState) {
  return ProtoUtils.convertFromProtoFormat(containerState);
}