|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppImpl
public class RMAppImpl
| Constructor Summary | |
|---|---|
RMAppImpl(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
RMContext rmContext,
org.apache.hadoop.conf.Configuration config,
String name,
String user,
String queue,
org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
String clientTokenStr,
ApplicationsStore.ApplicationStore appStore,
YarnScheduler scheduler,
ApplicationMasterService masterService,
long submitTime)
|
|
| Method Summary | |
|---|---|
org.apache.hadoop.yarn.api.records.ApplicationReport |
createAndGetApplicationReport()
To get the status of an application in the RM, this method can be used. |
org.apache.hadoop.yarn.api.records.ApplicationId |
getApplicationId()
The application id for this RMApp. |
ApplicationsStore.ApplicationStore |
getApplicationStore()
Application level metadata is stored in ApplicationsStore.ApplicationStore whicn
can persist the information. |
RMAppAttempt |
getCurrentAppAttempt()
RMApp can have multiple application attempts RMAppAttempt. |
StringBuilder |
getDiagnostics()
the diagnostics information for the application master. |
org.apache.hadoop.yarn.api.records.FinalApplicationStatus |
getFinalApplicationStatus()
The final finish state of the AM when unregistering as in FinishApplicationMasterRequest.setFinishApplicationStatus(FinalApplicationStatus). |
long |
getFinishTime()
The finish time of the RMApp |
String |
getName()
The name of the application as set in ApplicationSubmissionContext.setApplicationName(String). |
float |
getProgress()
Progress of application. |
String |
getQueue()
Each Application is submitted to a queue decided by ApplicationSubmissionContext.setQueue(String). |
RMAppAttempt |
getRMAppAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
RMApp can have multiple application attempts RMAppAttempt. |
long |
getStartTime()
the start time of the application. |
RMAppState |
getState()
The current state of the RMApp. |
long |
getSubmitTime()
the submit time of the application. |
String |
getTrackingUrl()
The tracking url for the application master. |
String |
getUser()
The user who submitted this application. |
void |
handle(RMAppEvent event)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RMAppImpl(org.apache.hadoop.yarn.api.records.ApplicationId applicationId,
RMContext rmContext,
org.apache.hadoop.conf.Configuration config,
String name,
String user,
String queue,
org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
String clientTokenStr,
ApplicationsStore.ApplicationStore appStore,
YarnScheduler scheduler,
ApplicationMasterService masterService,
long submitTime)
| Method Detail |
|---|
public org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
RMAppRMApp.
getApplicationId in interface RMAppApplicationId for this RMApp.public org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
RMAppFinishApplicationMasterRequest.setFinishApplicationStatus(FinalApplicationStatus).
getFinalApplicationStatus in interface RMAppFinishApplicationMasterRequest.setFinishApplicationStatus(FinalApplicationStatus).public RMAppState getState()
RMAppRMApp.
getState in interface RMAppRMAppState for this application.public String getUser()
RMApp
getUser in interface RMApppublic float getProgress()
RMApp
getProgress in interface RMAppRMApp.public RMAppAttempt getRMAppAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
RMAppRMApp can have multiple application attempts RMAppAttempt.
This method returns the RMAppAttempt corresponding to
ApplicationAttemptId.
getRMAppAttempt in interface RMAppappAttemptId - the application attempt id
RMAppAttempt corresponding to the ApplicationAttemptId.public String getQueue()
RMAppApplicationSubmissionContext.setQueue(String).
This method returns the queue to which an application was submitted.
getQueue in interface RMApppublic String getName()
RMAppApplicationSubmissionContext.setApplicationName(String).
getName in interface RMApppublic RMAppAttempt getCurrentAppAttempt()
RMAppRMApp can have multiple application attempts RMAppAttempt.
This method returns the current RMAppAttempt.
getCurrentAppAttempt in interface RMAppRMAppAttemptpublic ApplicationsStore.ApplicationStore getApplicationStore()
RMAppApplicationsStore.ApplicationStore whicn
can persist the information.
getApplicationStore in interface RMAppApplicationsStore.ApplicationStore for this RMApp.public org.apache.hadoop.yarn.api.records.ApplicationReport createAndGetApplicationReport()
RMApp
createAndGetApplicationReport in interface RMAppApplicationReport detailing the status of the application.public long getFinishTime()
RMAppRMApp
getFinishTime in interface RMApppublic long getStartTime()
RMApp
getStartTime in interface RMApppublic long getSubmitTime()
RMApp
getSubmitTime in interface RMApppublic String getTrackingUrl()
RMApp
getTrackingUrl in interface RMApppublic StringBuilder getDiagnostics()
RMApp
getDiagnostics in interface RMApppublic void handle(RMAppEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<RMAppEvent>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||