org.apache.hadoop.yarn.util
Class ProtoUtils
java.lang.Object
org.apache.hadoop.yarn.util.ProtoUtils
public class ProtoUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProtoUtils
public ProtoUtils()
convertToProtoFormat
public static YarnProtos.ContainerStateProto convertToProtoFormat(ContainerState e)
convertFromProtoFormat
public static ContainerState convertFromProtoFormat(YarnProtos.ContainerStateProto e)
convertToProtoFormat
public static YarnProtos.NodeStateProto convertToProtoFormat(NodeState e)
convertFromProtoFormat
public static NodeState convertFromProtoFormat(YarnProtos.NodeStateProto e)
convertToProtoFormat
public static YarnProtos.NodeIdProto convertToProtoFormat(NodeId e)
convertFromProtoFormat
public static NodeId convertFromProtoFormat(YarnProtos.NodeIdProto e)
convertToProtoFormat
public static YarnProtos.YarnApplicationStateProto convertToProtoFormat(YarnApplicationState e)
convertFromProtoFormat
public static YarnApplicationState convertFromProtoFormat(YarnProtos.YarnApplicationStateProto e)
convertToProtoFormat
public static YarnProtos.ApplicationResourceUsageReportProto convertToProtoFormat(ApplicationResourceUsageReport e)
convertFromProtoFormat
public static ApplicationResourceUsageReport convertFromProtoFormat(YarnProtos.ApplicationResourceUsageReportProto e)
convertToProtoFormat
public static YarnProtos.FinalApplicationStatusProto convertToProtoFormat(FinalApplicationStatus e)
convertFromProtoFormat
public static FinalApplicationStatus convertFromProtoFormat(YarnProtos.FinalApplicationStatusProto e)
convertToProtoFormat
public static YarnProtos.LocalResourceTypeProto convertToProtoFormat(LocalResourceType e)
convertFromProtoFormat
public static LocalResourceType convertFromProtoFormat(YarnProtos.LocalResourceTypeProto e)
convertToProtoFormat
public static YarnProtos.LocalResourceVisibilityProto convertToProtoFormat(LocalResourceVisibility e)
convertFromProtoFormat
public static LocalResourceVisibility convertFromProtoFormat(YarnProtos.LocalResourceVisibilityProto e)
convertFromProtoFormat
public static ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)
convertToProtoFormat
public static com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
convertToProtoFormat
public static YarnProtos.QueueStateProto convertToProtoFormat(QueueState e)
convertFromProtoFormat
public static QueueState convertFromProtoFormat(YarnProtos.QueueStateProto e)
convertToProtoFormat
public static YarnProtos.QueueACLProto convertToProtoFormat(QueueACL e)
convertFromProtoFormat
public static QueueACL convertFromProtoFormat(YarnProtos.QueueACLProto e)
convertToProtoFormat
public static YarnProtos.ApplicationAccessTypeProto convertToProtoFormat(ApplicationAccessType e)
convertFromProtoFormat
public static ApplicationAccessType convertFromProtoFormat(YarnProtos.ApplicationAccessTypeProto e)
convertFromProtoFormat
public static <T extends org.apache.hadoop.security.token.TokenIdentifier> org.apache.hadoop.security.token.Token<T> convertFromProtoFormat(Token protoToken,
InetSocketAddress serviceAddr)
- Convert a protobuf token into a rpc token and set its service
- Parameters:
protoToken - the yarn tokenserviceAddr - the connect address for the service
- Returns:
- rpc token
Copyright © 2013 Apache Software Foundation. All Rights Reserved.