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

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

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

Contains all the state data that needs to be stored persistently for an Application


Constructor Summary
ApplicationStateData()
           
 
Method Summary
abstract  org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext getApplicationSubmissionContext()
          The ApplicationSubmissionContext for the application ApplicationId can be obtained from the this
abstract  String getDiagnostics()
          Get the diagnostics information for the application master.
abstract  long getFinishTime()
          The finish time of the application.
abstract  YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto getProto()
           
abstract  long getStartTime()
          Get the start time of the application.
abstract  RMAppState getState()
          Get the final state of the application.
abstract  long getSubmitTime()
          The time at which the application was received by the Resource Manager
abstract  String getUser()
           
static ApplicationStateData newInstance(long submitTime, long startTime, String user, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long finishTime)
           
static ApplicationStateData newInstance(RMStateStore.ApplicationState appState)
           
abstract  void setApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context)
           
abstract  void setDiagnostics(String diagnostics)
           
abstract  void setFinishTime(long finishTime)
           
abstract  void setStartTime(long startTime)
           
abstract  void setState(RMAppState state)
           
abstract  void setSubmitTime(long submitTime)
           
abstract  void setUser(String user)
          The application submitter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationStateData

public ApplicationStateData()
Method Detail

newInstance

public static ApplicationStateData newInstance(long submitTime,
                                               long startTime,
                                               String user,
                                               org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
                                               RMAppState state,
                                               String diagnostics,
                                               long finishTime)

newInstance

public static ApplicationStateData newInstance(RMStateStore.ApplicationState appState)

getProto

public abstract YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto getProto()

getSubmitTime

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract long getSubmitTime()
The time at which the application was received by the Resource Manager

Returns:
submitTime

setSubmitTime

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setSubmitTime(long submitTime)

getStartTime

@InterfaceAudience.Public
@InterfaceStability.Stable
public abstract long getStartTime()
Get the start time of the application.

Returns:
start time of the application

setStartTime

@InterfaceAudience.Private
@InterfaceStability.Unstable
public abstract void setStartTime(long startTime)

setUser

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setUser(String user)
The application submitter


getUser

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract String getUser()

getApplicationSubmissionContext

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext getApplicationSubmissionContext()
The ApplicationSubmissionContext for the application ApplicationId can be obtained from the this

Returns:
ApplicationSubmissionContext

setApplicationSubmissionContext

@InterfaceAudience.Public
@InterfaceStability.Unstable
public abstract void setApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context)

getState

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

Returns:
the final state of the application.

setState

public abstract void setState(RMAppState state)

getDiagnostics

public abstract String getDiagnostics()
Get the diagnostics information for the application master.

Returns:
the diagnostics information for the application master.

setDiagnostics

public abstract void setDiagnostics(String diagnostics)

getFinishTime

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

Returns:
the finish time of the application.,

setFinishTime

public abstract void setFinishTime(long finishTime)


Copyright © 2014 Apache Software Foundation. All Rights Reserved.