org.apache.hadoop.yarn.server.resourcemanager
Class RMAppManager

java.lang.Object
  extended by org.apache.hadoop.yarn.server.resourcemanager.RMAppManager
All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>

public class RMAppManager
extends Object
implements org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>

This class manages the list of applications for the resource manager.


Constructor Summary
RMAppManager(RMContext context, org.apache.hadoop.yarn.security.client.ClientToAMSecretManager clientToAMSecretManager, YarnScheduler scheduler, ApplicationMasterService masterService, org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager, org.apache.hadoop.conf.Configuration conf)
           
 
Method Summary
protected  void checkAppNumCompletedLimit()
           
protected  void finishApplication(org.apache.hadoop.yarn.api.records.ApplicationId applicationId)
           
protected  int getCompletedAppsListSize()
           
 void handle(RMAppManagerEvent event)
           
protected  void setCompletedAppsMax(int max)
           
protected  void submitApplication(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext submissionContext, long submitTime)
           
protected  void writeAuditLog(org.apache.hadoop.yarn.api.records.ApplicationId appId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMAppManager

public RMAppManager(RMContext context,
                    org.apache.hadoop.yarn.security.client.ClientToAMSecretManager clientToAMSecretManager,
                    YarnScheduler scheduler,
                    ApplicationMasterService masterService,
                    org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager,
                    org.apache.hadoop.conf.Configuration conf)
Method Detail

setCompletedAppsMax

protected void setCompletedAppsMax(int max)

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)

handle

public void handle(RMAppManagerEvent event)
Specified by:
handle in interface org.apache.hadoop.yarn.event.EventHandler<RMAppManagerEvent>


Copyright © 2012 Apache Software Foundation. All Rights Reserved.