org.apache.hadoop.yarn.util
Class ProtoUtils

java.lang.Object
  extended by org.apache.hadoop.yarn.util.ProtoUtils

public class ProtoUtils
extends Object


Constructor Summary
ProtoUtils()
           
 
Method Summary
static ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)
           
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
static ApplicationAccessType convertFromProtoFormat(YarnProtos.ApplicationAccessTypeProto e)
           
static ApplicationResourceUsageReport convertFromProtoFormat(YarnProtos.ApplicationResourceUsageReportProto e)
           
static ContainerState convertFromProtoFormat(YarnProtos.ContainerStateProto e)
           
static FinalApplicationStatus convertFromProtoFormat(YarnProtos.FinalApplicationStatusProto e)
           
static LocalResourceType convertFromProtoFormat(YarnProtos.LocalResourceTypeProto e)
           
static LocalResourceVisibility convertFromProtoFormat(YarnProtos.LocalResourceVisibilityProto e)
           
static NodeId convertFromProtoFormat(YarnProtos.NodeIdProto e)
           
static NodeState convertFromProtoFormat(YarnProtos.NodeStateProto e)
           
static QueueACL convertFromProtoFormat(YarnProtos.QueueACLProto e)
           
static QueueState convertFromProtoFormat(YarnProtos.QueueStateProto e)
           
static YarnApplicationState convertFromProtoFormat(YarnProtos.YarnApplicationStateProto e)
           
static YarnProtos.ApplicationAccessTypeProto convertToProtoFormat(ApplicationAccessType e)
           
static YarnProtos.ApplicationResourceUsageReportProto convertToProtoFormat(ApplicationResourceUsageReport e)
           
static com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
           
static YarnProtos.ContainerStateProto convertToProtoFormat(ContainerState e)
           
static YarnProtos.FinalApplicationStatusProto convertToProtoFormat(FinalApplicationStatus e)
           
static YarnProtos.LocalResourceTypeProto convertToProtoFormat(LocalResourceType e)
           
static YarnProtos.LocalResourceVisibilityProto convertToProtoFormat(LocalResourceVisibility e)
           
static YarnProtos.NodeIdProto convertToProtoFormat(NodeId e)
           
static YarnProtos.NodeStateProto convertToProtoFormat(NodeState e)
           
static YarnProtos.QueueACLProto convertToProtoFormat(QueueACL e)
           
static YarnProtos.QueueStateProto convertToProtoFormat(QueueState e)
           
static YarnProtos.YarnApplicationStateProto convertToProtoFormat(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 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 token
serviceAddr - the connect address for the service
Returns:
rpc token


Copyright © 2013 Apache Software Foundation. All Rights Reserved.