@InterfaceAudience.Public @InterfaceStability.Unstable public abstract class ApplicationStateData extends Object
Modifier and Type | Field and Description |
---|---|
Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,ApplicationAttemptStateData> |
attempts |
Constructor and Description |
---|
ApplicationStateData() |
Modifier and Type | Method and Description |
---|---|
abstract org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext |
getApplicationSubmissionContext()
The
ApplicationSubmissionContext for the application
ApplicationId can be obtained from the this |
ApplicationAttemptStateData |
getAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId) |
int |
getAttemptCount() |
abstract org.apache.hadoop.ipc.CallerContext |
getCallerContext() |
abstract String |
getDiagnostics()
Get the diagnostics information for the application master.
|
abstract long |
getFinishTime()
The finish time of the application.
|
abstract org.apache.hadoop.yarn.proto.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,
org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context,
String user) |
static ApplicationStateData |
newInstance(long submitTime,
long startTime,
org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context,
String user,
org.apache.hadoop.ipc.CallerContext callerContext) |
static ApplicationStateData |
newInstance(long submitTime,
long startTime,
String user,
org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
RMAppState state,
String diagnostics,
long finishTime,
org.apache.hadoop.ipc.CallerContext callerContext) |
abstract void |
setApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context) |
abstract void |
setCallerContext(org.apache.hadoop.ipc.CallerContext callerContext) |
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
|
public Map<org.apache.hadoop.yarn.api.records.ApplicationAttemptId,ApplicationAttemptStateData> attempts
public static ApplicationStateData newInstance(long submitTime, long startTime, String user, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, RMAppState state, String diagnostics, long finishTime, org.apache.hadoop.ipc.CallerContext callerContext)
public static ApplicationStateData newInstance(long submitTime, long startTime, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, String user, org.apache.hadoop.ipc.CallerContext callerContext)
public static ApplicationStateData newInstance(long submitTime, long startTime, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context, String user)
public int getAttemptCount()
public ApplicationAttemptStateData getAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId attemptId)
public abstract org.apache.hadoop.yarn.proto.YarnServerResourceManagerRecoveryProtos.ApplicationStateDataProto getProto()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract long getSubmitTime()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setSubmitTime(long submitTime)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract long getStartTime()
@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setStartTime(long startTime)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setUser(String user)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract String getUser()
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext getApplicationSubmissionContext()
ApplicationSubmissionContext
for the application
ApplicationId
can be obtained from the this@InterfaceAudience.Public @InterfaceStability.Unstable public abstract void setApplicationSubmissionContext(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext context)
public abstract RMAppState getState()
public abstract void setState(RMAppState state)
public abstract String getDiagnostics()
public abstract void setDiagnostics(String diagnostics)
public abstract long getFinishTime()
public abstract void setFinishTime(long finishTime)
public abstract org.apache.hadoop.ipc.CallerContext getCallerContext()
public abstract void setCallerContext(org.apache.hadoop.ipc.CallerContext callerContext)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.