Class ApplicationStateData
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.recovery.records.ApplicationStateData
- Direct Known Subclasses:
ApplicationStateDataPBImpl
Contains all the state data that needs to be stored persistently
for an Application
-
Field Summary
FieldsModifier and TypeFieldDescriptionMap<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,ApplicationAttemptStateData> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract org.apache.hadoop.yarn.api.records.ApplicationSubmissionContextTheApplicationSubmissionContextfor the applicationApplicationIdcan be obtained from the thisgetAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) intabstract org.apache.hadoop.ipc.CallerContextabstract StringGet the diagnostics information for the application master.abstract longThe finish time of the application.intabstract longGet the launch time of the application.abstract org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProtogetProto()abstract Stringabstract longGet the start time of the application.abstract RMAppStategetState()Get the final state of the application.abstract longThe time at which the application was received by the Resource Managerabstract StringgetUser()static ApplicationStateDatanewInstance(long submitTime, long startTime, String user, String realUser, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long launchTime, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext) static ApplicationStateDatanewInstance(long submitTime, long startTime, String user, String realUser, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long launchTime, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext, Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType, Long> applicationTimeouts) static ApplicationStateDatanewInstance(long submitTime, long startTime, String user, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long launchTime, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext) static ApplicationStateDatanewInstance(long submitTime, long startTime, String user, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long launchTime, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext, Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType, Long> applicationTimeouts) static ApplicationStateDatanewInstance(long submitTime, long startTime, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, String user) static ApplicationStateDatanewInstance(long submitTime, long startTime, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, String user, String realUser, org.apache.hadoop.ipc.CallerContext callerContext) static ApplicationStateDatanewInstance(long submitTime, long startTime, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, String user, org.apache.hadoop.ipc.CallerContext callerContext) abstract voidsetApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context) abstract voidsetApplicationTimeouts(Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType, Long> applicationTimeouts) abstract voidsetCallerContext(org.apache.hadoop.ipc.CallerContext callerContext) abstract voidsetDiagnostics(String diagnostics) abstract voidsetFinishTime(long finishTime) abstract voidsetLaunchTime(long launchTime) abstract voidsetRealUser(String realUser) abstract voidsetStartTime(long startTime) abstract voidsetState(RMAppState state) abstract voidsetSubmitTime(long submitTime) abstract voidThe application submitter.
-
Field Details
-
attempts
public Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,ApplicationAttemptStateData> attempts
-
-
Constructor Details
-
ApplicationStateData
public ApplicationStateData()
-
-
Method Details
-
newInstance
public static ApplicationStateData newInstance(long submitTime, long startTime, String user, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long launchTime, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext) -
newInstance
public static ApplicationStateData newInstance(long submitTime, long startTime, String user, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long launchTime, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext, Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType, Long> applicationTimeouts) -
newInstance
public static ApplicationStateData newInstance(long submitTime, long startTime, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, String user, org.apache.hadoop.ipc.CallerContext callerContext) -
newInstance
public static ApplicationStateData newInstance(long submitTime, long startTime, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, String user) -
newInstance
public static ApplicationStateData newInstance(long submitTime, long startTime, String user, String realUser, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long launchTime, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext) -
newInstance
public static ApplicationStateData newInstance(long submitTime, long startTime, String user, String realUser, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long launchTime, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext, Map<org.apache.hadoop.yarn.api.records.ApplicationTimeoutType, Long> applicationTimeouts) -
newInstance
public static ApplicationStateData newInstance(long submitTime, long startTime, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, String user, String realUser, org.apache.hadoop.ipc.CallerContext callerContext) -
getAttemptCount
public int getAttemptCount() -
getAttempt
public ApplicationAttemptStateData getAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) -
getFirstAttemptId
public int getFirstAttemptId() -
getProto
public abstract org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto getProto() -
getSubmitTime
@Public @Unstable public abstract long getSubmitTime()The time at which the application was received by the Resource Manager- Returns:
- submitTime
-
setSubmitTime
@Public @Unstable public abstract void setSubmitTime(long submitTime) -
getStartTime
@Public @Stable public abstract long getStartTime()Get the start time of the application.- Returns:
- start time of the application
-
setStartTime
@Private @Unstable public abstract void setStartTime(long startTime) -
getLaunchTime
@Public @Stable public abstract long getLaunchTime()Get the launch time of the application.- Returns:
- launch time of the application
-
setLaunchTime
@Private @Unstable public abstract void setLaunchTime(long launchTime) -
setUser
The application submitter.- Parameters:
user- submitter user name.
-
getUser
-
getApplicationSubmissionContext
@Public @Unstable public abstract org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext getApplicationSubmissionContext()TheApplicationSubmissionContextfor the applicationApplicationIdcan be obtained from the this- Returns:
- ApplicationSubmissionContext
-
setApplicationSubmissionContext
@Public @Unstable public abstract void setApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context) -
getState
Get the final state of the application.- Returns:
- the final state of the application.
-
setState
-
getDiagnostics
Get the diagnostics information for the application master.- Returns:
- the diagnostics information for the application master.
-
setDiagnostics
-
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) -
getCallerContext
public abstract org.apache.hadoop.ipc.CallerContext getCallerContext() -
setCallerContext
public abstract void setCallerContext(org.apache.hadoop.ipc.CallerContext callerContext) -
getApplicationTimeouts
-
setApplicationTimeouts
-
getRealUser
-
setRealUser
-