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

java.lang.Object
  extended by org.apache.hadoop.yarn.service.AbstractService
      extended by org.apache.hadoop.yarn.service.CompositeService
          extended by org.apache.hadoop.yarn.server.resourcemanager.ResourceManager
All Implemented Interfaces:
Recoverable, org.apache.hadoop.yarn.service.Service

public class ResourceManager
extends org.apache.hadoop.yarn.service.CompositeService
implements Recoverable

The ResourceManager is the main class that is a set of components.


Nested Class Summary
static class ResourceManager.ApplicationAttemptEventDispatcher
           
static class ResourceManager.ApplicationEventDispatcher
           
static class ResourceManager.NodeEventDispatcher
           
static class ResourceManager.SchedulerEventDispatcher
           
 
Nested classes/interfaces inherited from class org.apache.hadoop.yarn.service.CompositeService
org.apache.hadoop.yarn.service.CompositeService.CompositeServiceShutdownHook
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Field Summary
protected  org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager
           
protected  org.apache.hadoop.yarn.security.ApplicationTokenSecretManager appTokenSecretManager
           
protected  org.apache.hadoop.yarn.security.client.ClientToAMSecretManager clientToAMSecretManager
           
static long clusterTimeStamp
           
protected  org.apache.hadoop.yarn.server.security.ContainerTokenSecretManager containerTokenSecretManager
           
protected  ApplicationMasterService masterService
           
protected  NMLivelinessMonitor nmLivelinessMonitor
           
protected  NodesListManager nodesListManager
           
protected  ResourceTrackerService resourceTracker
           
protected  RMAppManager rmAppManager
           
protected  RMContext rmContext
           
protected  org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager rmDTSecretManager
           
protected  ResourceScheduler scheduler
           
 
Constructor Summary
ResourceManager(Store store)
           
 
Method Summary
protected  void addIfService(Object object)
           
protected  AdminService createAdminService(ClientRMService clientRMService, ApplicationMasterService applicationMasterService, ResourceTrackerService resourceTrackerService)
           
protected  ApplicationMasterLauncher createAMLauncher()
           
protected  AMLivelinessMonitor createAMLivelinessMonitor()
           
protected  ApplicationMasterService createApplicationMasterService()
           
protected  ClientRMService createClientRMService()
           
protected  DelegationTokenRenewer createDelegationTokenRenewer()
           
protected  org.apache.hadoop.yarn.event.Dispatcher createDispatcher()
           
protected  ResourceTrackerService createResourceTrackerService()
           
protected  RMAppManager createRMAppManager()
           
protected  org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager createRMDelegationTokenSecretManager()
           
protected  ResourceScheduler createScheduler()
           
protected  org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent> createSchedulerEventDispatcher()
           
protected  void doSecureLogin()
           
 org.apache.hadoop.yarn.server.security.ApplicationACLsManager getApplicationACLsManager()
           
 ApplicationMasterService getApplicationMasterService()
           
 ClientRMService getClientRMService()
           
 ResourceScheduler getResourceScheduler()
          return the scheduler.
 ResourceTrackerService getResourceTrackerService()
          return the resource tracking component.
 RMContext getRMContext()
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
static void main(String[] argv)
           
 void recover(Store.RMState state)
           
 void start()
           
protected  void startWepApp()
           
 void stop()
           
 
Methods inherited from class org.apache.hadoop.yarn.service.CompositeService
addService, getServices, removeService
 
Methods inherited from class org.apache.hadoop.yarn.service.AbstractService
getConfig, getName, getServiceState, getStartTime, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clusterTimeStamp

public static final long clusterTimeStamp

clientToAMSecretManager

protected org.apache.hadoop.yarn.security.client.ClientToAMSecretManager clientToAMSecretManager

containerTokenSecretManager

protected org.apache.hadoop.yarn.server.security.ContainerTokenSecretManager containerTokenSecretManager

appTokenSecretManager

protected org.apache.hadoop.yarn.security.ApplicationTokenSecretManager appTokenSecretManager

scheduler

protected ResourceScheduler scheduler

masterService

protected ApplicationMasterService masterService

nmLivelinessMonitor

protected NMLivelinessMonitor nmLivelinessMonitor

nodesListManager

protected NodesListManager nodesListManager

rmAppManager

protected RMAppManager rmAppManager

applicationACLsManager

protected org.apache.hadoop.yarn.server.security.ApplicationACLsManager applicationACLsManager

rmDTSecretManager

protected org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager rmDTSecretManager

rmContext

protected RMContext rmContext

resourceTracker

protected ResourceTrackerService resourceTracker
Constructor Detail

ResourceManager

public ResourceManager(Store store)
Method Detail

getRMContext

public RMContext getRMContext()

init

public void init(org.apache.hadoop.conf.Configuration conf)
Specified by:
init in interface org.apache.hadoop.yarn.service.Service
Overrides:
init in class org.apache.hadoop.yarn.service.CompositeService

createSchedulerEventDispatcher

protected org.apache.hadoop.yarn.event.EventHandler<SchedulerEvent> createSchedulerEventDispatcher()

createDispatcher

protected org.apache.hadoop.yarn.event.Dispatcher createDispatcher()

addIfService

protected void addIfService(Object object)

createScheduler

protected ResourceScheduler createScheduler()

createAMLauncher

protected ApplicationMasterLauncher createAMLauncher()

createAMLivelinessMonitor

protected AMLivelinessMonitor createAMLivelinessMonitor()

createDelegationTokenRenewer

protected DelegationTokenRenewer createDelegationTokenRenewer()

createRMAppManager

protected RMAppManager createRMAppManager()

startWepApp

protected void startWepApp()

start

public void start()
Specified by:
start in interface org.apache.hadoop.yarn.service.Service
Overrides:
start in class org.apache.hadoop.yarn.service.CompositeService

doSecureLogin

protected void doSecureLogin()
                      throws IOException
Throws:
IOException

stop

public void stop()
Specified by:
stop in interface org.apache.hadoop.yarn.service.Service
Overrides:
stop in class org.apache.hadoop.yarn.service.CompositeService

createResourceTrackerService

protected ResourceTrackerService createResourceTrackerService()

createRMDelegationTokenSecretManager

protected org.apache.hadoop.yarn.server.RMDelegationTokenSecretManager createRMDelegationTokenSecretManager()

createClientRMService

protected ClientRMService createClientRMService()

createApplicationMasterService

protected ApplicationMasterService createApplicationMasterService()

createAdminService

protected AdminService createAdminService(ClientRMService clientRMService,
                                          ApplicationMasterService applicationMasterService,
                                          ResourceTrackerService resourceTrackerService)

getClientRMService

@InterfaceAudience.Private
public ClientRMService getClientRMService()

getResourceScheduler

@InterfaceAudience.Private
public ResourceScheduler getResourceScheduler()
return the scheduler.

Returns:
the scheduler for the Resource Manager.

getResourceTrackerService

@InterfaceAudience.Private
public ResourceTrackerService getResourceTrackerService()
return the resource tracking component.

Returns:
the resource tracking component.

getApplicationMasterService

@InterfaceAudience.Private
public ApplicationMasterService getApplicationMasterService()

getApplicationACLsManager

@InterfaceAudience.Private
public org.apache.hadoop.yarn.server.security.ApplicationACLsManager getApplicationACLsManager()

recover

public void recover(Store.RMState state)
             throws Exception
Specified by:
recover in interface Recoverable
Throws:
Exception

main

public static void main(String[] argv)


Copyright © 2012 Apache Software Foundation. All Rights Reserved.