org.apache.hadoop.yarn.api.records.impl.pb
Class ProtoUtils

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils

@InterfaceAudience.Private
@InterfaceStability.Unstable
public class ProtoUtils
extends Object


Constructor Summary
ProtoUtils()
           
 
Method Summary
static ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)
           
static org.apache.hadoop.yarn.api.records.AMCommand convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto e)
           
static org.apache.hadoop.yarn.api.records.ApplicationAccessType convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAccessTypeProto e)
           
static org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto e)
           
static org.apache.hadoop.yarn.api.records.ContainerState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto e)
           
static org.apache.hadoop.yarn.api.records.FinalApplicationStatus convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto e)
           
static org.apache.hadoop.yarn.api.records.LocalResourceType convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto e)
           
static org.apache.hadoop.yarn.api.records.LocalResourceVisibility convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto e)
           
static org.apache.hadoop.yarn.api.records.NodeId convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto e)
           
static org.apache.hadoop.yarn.api.records.NodeState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto e)
           
static org.apache.hadoop.yarn.api.records.QueueACL convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto e)
           
static org.apache.hadoop.yarn.api.records.QueueState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.QueueStateProto e)
           
static org.apache.hadoop.yarn.api.records.ReservationRequestInterpreter convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestInterpreterProto e)
           
static org.apache.hadoop.yarn.api.records.YarnApplicationAttemptState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto e)
           
static org.apache.hadoop.yarn.api.records.YarnApplicationState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto e)
           
static org.apache.hadoop.yarn.api.protocolrecords.ApplicationsRequestScope convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.AMCommand e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAccessTypeProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.ApplicationAccessType e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport e)
           
static org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto convertToProtoFormat(org.apache.hadoop.yarn.api.protocolrecords.ApplicationsRequestScope e)
           
static com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
           
static org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.ContainerState e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.FinalApplicationStatus e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.LocalResourceType e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.LocalResourceVisibility e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.NodeId e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.NodeState e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.QueueACL e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.QueueStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.QueueState e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestInterpreterProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.ReservationRequestInterpreter e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.YarnApplicationAttemptState e)
           
static org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.YarnApplicationState e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtoUtils

public ProtoUtils()
Method Detail

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.ContainerState e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.ContainerState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.ContainerStateProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.NodeState e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.NodeState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.NodeStateProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.NodeId e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.NodeId convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.NodeIdProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.YarnApplicationState e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.YarnApplicationState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationStateProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.YarnApplicationAttemptState e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.YarnApplicationAttemptState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.YarnApplicationAttemptStateProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto convertToProtoFormat(org.apache.hadoop.yarn.api.protocolrecords.ApplicationsRequestScope e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.protocolrecords.ApplicationsRequestScope convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServiceProtos.ApplicationsRequestScopeProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.ApplicationResourceUsageReport convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationResourceUsageReportProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.FinalApplicationStatus e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.FinalApplicationStatus convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.FinalApplicationStatusProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.LocalResourceType e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.LocalResourceType convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceTypeProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.LocalResourceVisibility e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.LocalResourceVisibility convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.LocalResourceVisibilityProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.AMCommand e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.AMCommand convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.AMCommandProto e)

convertFromProtoFormat

public static ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)

convertToProtoFormat

public static com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.QueueStateProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.QueueState e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.QueueState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.QueueStateProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.QueueACL e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.QueueACL convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.QueueACLProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAccessTypeProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.ApplicationAccessType e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.ApplicationAccessType convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.ApplicationAccessTypeProto e)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestInterpreterProto convertToProtoFormat(org.apache.hadoop.yarn.api.records.ReservationRequestInterpreter e)

convertFromProtoFormat

public static org.apache.hadoop.yarn.api.records.ReservationRequestInterpreter convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnProtos.ReservationRequestInterpreterProto e)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.