org.apache.hadoop.yarn.server.resourcemanager.rmapp
Interface RMApp

All Superinterfaces:
org.apache.hadoop.yarn.event.EventHandler<RMAppEvent>
All Known Implementing Classes:
RMAppImpl

public interface RMApp
extends org.apache.hadoop.yarn.event.EventHandler<RMAppEvent>

The read interface to an Application in the ResourceManager. Take a look at RMAppImpl for its implementation. This interface exposes methods to access various updates in application status/report.


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.
 
Methods inherited from interface org.apache.hadoop.yarn.event.EventHandler
handle
 

Method Detail

getApplicationId

org.apache.hadoop.yarn.api.records.ApplicationId getApplicationId()
The application id for this RMApp.

Returns:
the ApplicationId for this RMApp.

getState

RMAppState getState()
The current state of the RMApp.

Returns:
the current state RMAppState for this application.

getUser

String getUser()
The user who submitted this application.

Returns:
the user who submitted the application.

getProgress

float getProgress()
Progress of application.

Returns:
the progress of the RMApp.

getRMAppAttempt

RMAppAttempt getRMAppAttempt(org.apache.hadoop.yarn.api.records.ApplicationAttemptId appAttemptId)
RMApp can have multiple application attempts RMAppAttempt. This method returns the RMAppAttempt corresponding to ApplicationAttemptId.

Parameters:
appAttemptId - the application attempt id
Returns:
the RMAppAttempt corresponding to the ApplicationAttemptId.

getQueue

String getQueue()
Each Application is submitted to a queue decided by ApplicationSubmissionContext.setQueue(String). This method returns the queue to which an application was submitted.

Returns:
the queue to which the application was submitted to.

getName

String getName()
The name of the application as set in ApplicationSubmissionContext.setApplicationName(String).

Returns:
the name of the application.

getCurrentAppAttempt

RMAppAttempt getCurrentAppAttempt()
RMApp can have multiple application attempts RMAppAttempt. This method returns the current RMAppAttempt.

Returns:
the current RMAppAttempt

createAndGetApplicationReport

org.apache.hadoop.yarn.api.records.ApplicationReport createAndGetApplicationReport()
To get the status of an application in the RM, this method can be used.

Returns:
the ApplicationReport detailing the status of the application.

getApplicationStore

ApplicationsStore.ApplicationStore getApplicationStore()
Application level metadata is stored in ApplicationsStore.ApplicationStore whicn can persist the information.

Returns:
the ApplicationsStore.ApplicationStore for this RMApp.

getFinishTime

long getFinishTime()
The finish time of the RMApp

Returns:
the finish time of the application.,

getStartTime

long getStartTime()
the start time of the application.

Returns:
the start time of the application.

getSubmitTime

long getSubmitTime()
the submit time of the application.

Returns:
the submit time of the application.

getTrackingUrl

String getTrackingUrl()
The tracking url for the application master.

Returns:
the tracking url for the application master.

getDiagnostics

StringBuilder getDiagnostics()
the diagnostics information for the application master.

Returns:
the diagnostics information for the application master.

getFinalApplicationStatus

org.apache.hadoop.yarn.api.records.FinalApplicationStatus getFinalApplicationStatus()
The final finish state of the AM when unregistering as in FinishApplicationMasterRequest.setFinishApplicationStatus(FinalApplicationStatus).

Returns:
the final finish state of the AM as set in FinishApplicationMasterRequest.setFinishApplicationStatus(FinalApplicationStatus).


Copyright © 2012 Apache Software Foundation. All Rights Reserved.