public class RMAppManager extends Object implements org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>, Recoverable
| Modifier and Type | Field and Description | 
|---|---|
| protected int | completedAppsInStateStore | 
| Constructor and Description | 
|---|
| RMAppManager(RMContext context,
            YarnScheduler scheduler,
            ApplicationMasterService masterService,
            org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager,
            org.apache.hadoop.conf.Configuration conf) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected void | checkAppNumCompletedLimit() | 
| protected void | finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId) | 
| protected int | getCompletedAppsListSize() | 
| void | handle(RMAppManagerEvent event) | 
| void | logApplicationSummary(org.apache.hadoop.yarn.api.records.ApplicationId appId) | 
| protected org.apache.hadoop.security.Credentials | parseCredentials(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext application) | 
| void | recover(RMStateStore.RMState state) | 
| protected void | recoverApplication(ApplicationStateData appState,
                  RMStateStore.RMState rmState) | 
| protected void | submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
                 long submitTime,
                 String user) | 
| protected void | writeAuditLog(org.apache.hadoop.yarn.api.records.ApplicationId appId) | 
public RMAppManager(RMContext context, YarnScheduler scheduler, ApplicationMasterService masterService, org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager, org.apache.hadoop.conf.Configuration conf)
public void logApplicationSummary(org.apache.hadoop.yarn.api.records.ApplicationId appId)
protected int getCompletedAppsListSize()
protected void finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
protected void writeAuditLog(org.apache.hadoop.yarn.api.records.ApplicationId appId)
protected void checkAppNumCompletedLimit()
protected void submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
                     long submitTime,
                     String user)
                          throws org.apache.hadoop.yarn.exceptions.YarnException
org.apache.hadoop.yarn.exceptions.YarnExceptionprotected void recoverApplication(ApplicationStateData appState, RMStateStore.RMState rmState) throws Exception
Exceptionprotected org.apache.hadoop.security.Credentials parseCredentials(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext application)
                                                           throws IOException
IOExceptionpublic void recover(RMStateStore.RMState state) throws Exception
recover in interface RecoverableExceptionpublic void handle(RMAppManagerEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>Copyright © 2017 Apache Software Foundation. All Rights Reserved.