org.apache.hadoop.yarn.server.resourcemanager.recovery.records
Class ApplicationAttemptStateData

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.recovery.records.ApplicationAttemptStateData
Direct Known Subclasses:
ApplicationAttemptStateDataPBImpl

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract class ApplicationAttemptStateData
extends Object


Constructor Summary
ApplicationAttemptStateData()
           
 
Method Summary
abstract  int getAMContainerExitStatus()
           
abstract  ByteBuffer getAppAttemptTokens()
          The application attempt tokens that belong to this attempt
abstract  org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAttemptId()
          The ApplicationAttemptId for the application attempt
abstract  String getDiagnostics()
          Get the diagnositic information of the attempt
abstract  org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
          Get the final finish status of the application.
abstract  String getFinalTrackingUrl()
          Get the original not-proxied final tracking url for the application.
abstract  long getFinishTime()
          Get the finish time of the application attempt.
abstract  org.apache.hadoop.yarn.api.records.Container getMasterContainer()
           
abstract  long getMemorySeconds()
          Get the memory seconds (in MB seconds) of the application.
abstract  YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto getProto()
           
abstract  long getStartTime()
          Get the start time of the application.
abstract  RMAppAttemptState getState()
          Get the final state of the application attempt.
abstract  long getVcoreSeconds()
          Get the vcore seconds of the application.
static ApplicationAttemptStateData newInstance(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, int exitStatus, long finishTime, long memorySeconds, long vcoreSeconds)
           
static ApplicationAttemptStateData newInstance(RMStateStore.ApplicationAttemptState attemptState)
           
abstract  void setAMContainerExitStatus(int exitStatus)
           
abstract  void setAppAttemptTokens(ByteBuffer attemptTokens)
           
abstract  void setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
           
abstract  void setDiagnostics(String diagnostics)
           
abstract  void setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState)
           
abstract  void setFinalTrackingUrl(String url)
          Set the final tracking Url of the AM.
abstract  void setFinishTime(long finishTime)
           
abstract  void setMasterContainer(org.apache.hadoop.yarn.api.records.Container container)
           
abstract  void setMemorySeconds(long memorySeconds)
           
abstract  void setStartTime(long startTime)
           
abstract  void setState(RMAppAttemptState state)
           
abstract  void setVcoreSeconds(long vcoreSeconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationAttemptStateData

public ApplicationAttemptStateData()
Method Detail

newInstance

public static ApplicationAttemptStateData newInstance(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,
                                                      int exitStatus,
                                                      long finishTime,
                                                      long memorySeconds,
                                                      long vcoreSeconds)

newInstance

public static ApplicationAttemptStateData newInstance(RMStateStore.ApplicationAttemptState attemptState)
                                               throws IOException
Throws:
IOException

getProto

public abstract YarnServerResourceManagerRecoveryProtos.ApplicationAttemptStateDataProto getProto()

getAttemptId

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract org.apache.hadoop.yarn.api.records.ApplicationAttemptId getAttemptId()
The ApplicationAttemptId for the application attempt

Returns:
ApplicationAttemptId for the application attempt

setAttemptId

public abstract void setAttemptId(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)

getMasterContainer

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract org.apache.hadoop.yarn.api.records.Container getMasterContainer()

setMasterContainer

public abstract void setMasterContainer(org.apache.hadoop.yarn.api.records.Container container)

getAppAttemptTokens

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract ByteBuffer getAppAttemptTokens()
The application attempt tokens that belong to this attempt

Returns:
The application attempt tokens that belong to this attempt

setAppAttemptTokens

public abstract void setAppAttemptTokens(ByteBuffer attemptTokens)

getState

public abstract RMAppAttemptState getState()
Get the final state of the application attempt.

Returns:
the final state of the application attempt.

setState

public abstract void setState(RMAppAttemptState state)

getFinalTrackingUrl

public abstract String getFinalTrackingUrl()
Get the original not-proxied final tracking url for the application. This is intended to only be used by the proxy itself.

Returns:
the original not-proxied final tracking url for the application

setFinalTrackingUrl

public abstract void setFinalTrackingUrl(String url)
Set the final tracking Url of the AM.

Parameters:
url -

getDiagnostics

public abstract String getDiagnostics()
Get the diagnositic information of the attempt

Returns:
diagnositic information of the attempt

setDiagnostics

public abstract void setDiagnostics(String diagnostics)

getStartTime

public abstract long getStartTime()
Get the start time of the application.

Returns:
start time of the application

setStartTime

public abstract void setStartTime(long startTime)

getFinalApplicationStatus

public abstract org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
Get the final finish status of the application.

Returns:
final finish status of the application

setFinalApplicationStatus

public abstract void setFinalApplicationStatus(org.apache.hadoop.yarn.api.records.FinalApplicationStatus finishState)

getAMContainerExitStatus

public abstract int getAMContainerExitStatus()

setAMContainerExitStatus

public abstract void setAMContainerExitStatus(int exitStatus)

getFinishTime

public abstract long getFinishTime()
Get the finish time of the application attempt.

Returns:
finish time of the application attempt

setFinishTime

public abstract void setFinishTime(long finishTime)

getMemorySeconds

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract long getMemorySeconds()
Get the memory seconds (in MB seconds) of the application.

Returns:
memory seconds (in MB seconds) of the application

setMemorySeconds

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setMemorySeconds(long memorySeconds)

getVcoreSeconds

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract long getVcoreSeconds()
Get the vcore seconds of the application.

Returns:
vcore seconds of the application

setVcoreSeconds

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setVcoreSeconds(long vcoreSeconds)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.