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
static RMAppAttemptState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.RMAppAttemptStateProto e)
           
static org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.RMAppAttemptStateProto convertToProtoFormat(RMAppAttemptState e)
           
 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
 String getDiagnostics()
          Get the diagnositic information of the attempt
 org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
          Get the final finish status of the application.
 String getFinalTrackingUrl()
          Get the original not-proxied final tracking url for the application.
 org.apache.hadoop.yarn.api.records.Container getMasterContainer()
           
 org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.ApplicationAttemptStateDataProto getProto()
           
 long getStartTime()
          Get the start time of the application.
 RMAppAttemptState getState()
          Get the final state of the application attempt.
static ApplicationAttemptStateData newApplicationAttemptStateData(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId, org.apache.hadoop.yarn.api.records.Container container, ByteBuffer attemptTokens, long startTime, RMAppAttemptState finalState, String finalTrackingUrl, String diagnostics, org.apache.hadoop.yarn.api.records.FinalApplicationStatus amUnregisteredFinalStatus)
           
 void setAppAttemptTokens(ByteBuffer attemptTokens)
           
 void setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
           
 void setDiagnostics(String diagnostics)
           
 void setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState)
           
 void setFinalTrackingUrl(String url)
          Set the final tracking Url of the AM.
 void setMasterContainer(org.apache.hadoop.yarn.api.records.Container container)
           
 void setStartTime(long startTime)
           
 void setState(RMAppAttemptState state)
           
 
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

getState

public RMAppAttemptState getState()
Description copied from interface: ApplicationAttemptStateData
Get the final state of the application attempt.

Specified by:
getState in interface ApplicationAttemptStateData
Returns:
the final state of the application attempt.

setState

public void setState(RMAppAttemptState state)
Specified by:
setState in interface ApplicationAttemptStateData

getFinalTrackingUrl

public String getFinalTrackingUrl()
Description copied from interface: ApplicationAttemptStateData
Get the original not-proxied final tracking url for the application. This is intended to only be used by the proxy itself.

Specified by:
getFinalTrackingUrl in interface ApplicationAttemptStateData
Returns:
the original not-proxied final tracking url for the application

setFinalTrackingUrl

public void setFinalTrackingUrl(String url)
Description copied from interface: ApplicationAttemptStateData
Set the final tracking Url of the AM.

Specified by:
setFinalTrackingUrl in interface ApplicationAttemptStateData

getDiagnostics

public String getDiagnostics()
Description copied from interface: ApplicationAttemptStateData
Get the diagnositic information of the attempt

Specified by:
getDiagnostics in interface ApplicationAttemptStateData
Returns:
diagnositic information of the attempt

setDiagnostics

public void setDiagnostics(String diagnostics)
Specified by:
setDiagnostics in interface ApplicationAttemptStateData

getStartTime

public long getStartTime()
Description copied from interface: ApplicationAttemptStateData
Get the start time of the application.

Specified by:
getStartTime in interface ApplicationAttemptStateData
Returns:
start time of the application

setStartTime

public void setStartTime(long startTime)
Specified by:
setStartTime in interface ApplicationAttemptStateData

getFinalApplicationStatus

public org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
Description copied from interface: ApplicationAttemptStateData
Get the final finish status of the application.

Specified by:
getFinalApplicationStatus in interface ApplicationAttemptStateData
Returns:
final finish status of the application

setFinalApplicationStatus

public void setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState)
Specified by:
setFinalApplicationStatus 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,
                                                                         long startTime,
                                                                         RMAppAttemptState finalState,
                                                                         String finalTrackingUrl,
                                                                         String diagnostics,
                                                                         org.apache.hadoop.yarn.api.records.FinalApplicationStatus amUnregisteredFinalStatus)

convertToProtoFormat

public static org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.RMAppAttemptStateProto convertToProtoFormat(RMAppAttemptState e)

convertFromProtoFormat

public static RMAppAttemptState convertFromProtoFormat(org.apache.hadoop.yarn.proto.YarnServerResourceManagerServiceProtos.RMAppAttemptStateProto e)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.