org.apache.hadoop.yarn.server.resourcemanager
Class RMAppManager
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.RMAppManager
- All Implemented Interfaces:
- org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>, Recoverable
public class RMAppManager
- extends Object
- implements org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>, Recoverable
This class manages the list of applications for the resource manager.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
completedAppsInStateStore
protected int completedAppsInStateStore
RMAppManager
public RMAppManager(RMContext context,
YarnScheduler scheduler,
ApplicationMasterService masterService,
org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager,
org.apache.hadoop.conf.Configuration conf)
logApplicationSummary
public void logApplicationSummary(org.apache.hadoop.yarn.api.records.ApplicationId appId)
getCompletedAppsListSize
protected int getCompletedAppsListSize()
finishApplication
protected void finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
writeAuditLog
protected void writeAuditLog(org.apache.hadoop.yarn.api.records.ApplicationId appId)
checkAppNumCompletedLimit
protected void checkAppNumCompletedLimit()
submitApplication
protected void submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext,
long submitTime,
String user)
throws org.apache.hadoop.yarn.exceptions.YarnException
- Throws:
org.apache.hadoop.yarn.exceptions.YarnException
recoverApplication
protected void recoverApplication(RMStateStore.ApplicationState appState,
RMStateStore.RMState rmState)
throws Exception
- Throws:
Exception
parseCredentials
protected org.apache.hadoop.security.Credentials parseCredentials(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext application)
throws IOException
- Throws:
IOException
recover
public void recover(RMStateStore.RMState state)
throws Exception
- Specified by:
recover in interface Recoverable
- Throws:
Exception
handle
public void handle(RMAppManagerEvent event)
- Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>
Copyright © 2014 Apache Software Foundation. All Rights Reserved.