org.apache.hadoop.yarn.server.resourcemanager.recovery.records.impl.pb
Class ApplicationAttemptStateDataPBImpl

java.lang.Object
  extended by org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto>
      extended by org.apache.hadoop.yarn.server.resourcemanager.recovery.records.impl.pb.ApplicationAttemptStateDataPBImpl
All Implemented Interfaces:
ApplicationAttemptStateData

public class ApplicationAttemptStateDataPBImpl
extends org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto>
implements ApplicationAttemptStateData


Constructor Summary
ApplicationAttemptStateDataPBImpl()
           
ApplicationAttemptStateDataPBImpl(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto proto)
           
 
Method Summary
 ByteBuffer getAppAttemptTokens()
          The application attempt tokens that belong to this attempt
 org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAttemptId()
          The ApplicationAttemptId for the application attempt
 org.apache.hadoop.yarn.api.records.Container getMasterContainer()
           
 org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto getProto()
           
static ApplicationAttemptStateData newApplicationAttemptStateData(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId, org.apache.hadoop.yarn.api.records.Container container, ByteBuffer attemptTokens)
           
 void setAppAttemptTokens(ByteBuffer attemptTokens)
           
 void setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
           
 void setMasterContainer(org.apache.hadoop.yarn.api.records.Container container)
           
 
Methods inherited from class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase
convertFromProtoFormat, convertToProtoFormat, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApplicationAttemptStateDataPBImpl

public ApplicationAttemptStateDataPBImpl()

ApplicationAttemptStateDataPBImpl

public ApplicationAttemptStateDataPBImpl(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto proto)
Method Detail

getProto

public org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto getProto()
Specified by:
getProto in class org.apache.hadoop.yarn.api.records.impl.pb.ProtoBase<org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto>

getAttemptId

public org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAttemptId()
Description copied from interface: ApplicationAttemptStateData
The ApplicationAttemptId for the application attempt

Specified by:
getAttemptId in interface ApplicationAttemptStateData
Returns:
ApplicationAttemptId for the application attempt

setAttemptId

public void setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
Specified by:
setAttemptId in interface ApplicationAttemptStateData

getMasterContainer

public org.apache.hadoop.yarn.api.records.Container getMasterContainer()
Specified by:
getMasterContainer in interface ApplicationAttemptStateData

setMasterContainer

public void setMasterContainer(org.apache.hadoop.yarn.api.records.Container container)
Specified by:
setMasterContainer in interface ApplicationAttemptStateData

getAppAttemptTokens

public ByteBuffer getAppAttemptTokens()
Description copied from interface: ApplicationAttemptStateData
The application attempt tokens that belong to this attempt

Specified by:
getAppAttemptTokens in interface ApplicationAttemptStateData
Returns:
The application attempt tokens that belong to this attempt

setAppAttemptTokens

public void setAppAttemptTokens(ByteBuffer attemptTokens)
Specified by:
setAppAttemptTokens in interface ApplicationAttemptStateData

newApplicationAttemptStateData

public static ApplicationAttemptStateData newApplicationAttemptStateData(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId,
                                                                         org.apache.hadoop.yarn.api.records.Container container,
                                                                         ByteBuffer attemptTokens)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.