org.apache.hadoop.yarn.api.records
Class ProtoBase<T extends com.google.protobuf.Message>

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.ProtoBase<T>
Direct Known Subclasses:
AllocateRequestPBImpl, AllocateResponsePBImpl, AMResponsePBImpl, ApplicationMasterPBImpl, ApplicationReportPBImpl, ApplicationResourceUsageReportPBImpl, ApplicationStatusPBImpl, ApplicationSubmissionContextPBImpl, ContainerLaunchContextPBImpl, ContainerPBImpl, ContainerStatusPBImpl, ContainerTokenPBImpl, DelegationTokenPBImpl, FinishApplicationMasterRequestPBImpl, FinishApplicationMasterResponsePBImpl, GetAllApplicationsRequestPBImpl, GetAllApplicationsResponsePBImpl, GetApplicationReportRequestPBImpl, GetApplicationReportResponsePBImpl, GetClusterMetricsRequestPBImpl, GetClusterMetricsResponsePBImpl, GetClusterNodesRequestPBImpl, GetClusterNodesResponsePBImpl, GetContainerStatusRequestPBImpl, GetContainerStatusResponsePBImpl, GetDelegationTokenRequestPBImpl, GetDelegationTokenResponsePBImpl, GetNewApplicationRequestPBImpl, GetNewApplicationResponsePBImpl, GetQueueInfoRequestPBImpl, GetQueueInfoResponsePBImpl, GetQueueUserAclsInfoRequestPBImpl, GetQueueUserAclsInfoResponsePBImpl, KillApplicationRequestPBImpl, KillApplicationResponsePBImpl, LocalResourcePBImpl, NodeHealthStatusPBImpl, NodeReportPBImpl, QueueInfoPBImpl, QueueUserACLInfoPBImpl, RegisterApplicationMasterRequestPBImpl, RegisterApplicationMasterResponsePBImpl, StartContainerRequestPBImpl, StartContainerResponsePBImpl, StopContainerRequestPBImpl, StopContainerResponsePBImpl, SubmitApplicationRequestPBImpl, SubmitApplicationResponsePBImpl, URLPBImpl, YarnClusterMetricsPBImpl

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract class ProtoBase<T extends com.google.protobuf.Message>
extends Object


Constructor Summary
ProtoBase()
           
 
Method Summary
protected  ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)
           
protected  com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)
           
 boolean equals(Object other)
           
abstract  T getProto()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProtoBase

public ProtoBase()
Method Detail

getProto

public abstract T getProto()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

convertFromProtoFormat

protected final ByteBuffer convertFromProtoFormat(com.google.protobuf.ByteString byteString)

convertToProtoFormat

protected final com.google.protobuf.ByteString convertToProtoFormat(ByteBuffer byteBuffer)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.