org.apache.hadoop.yarn.server.nodemanager.containermanager.localizer
Class ResourceLocalizationService

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.nodemanager.containermanager.localizer.ResourceLocalizationService
All Implemented Interfaces:
org.apache.hadoop.yarn.event.EventHandler<LocalizationEvent>, LocalizationProtocol, org.apache.hadoop.yarn.service.Service

public class ResourceLocalizationService
extends org.apache.hadoop.yarn.service.CompositeService
implements org.apache.hadoop.yarn.event.EventHandler<LocalizationEvent>, LocalizationProtocol


Nested Class Summary
 
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.event.Dispatcher dispatcher
           
static String NM_PRIVATE_DIR
           
static org.apache.hadoop.fs.permission.FsPermission NM_PRIVATE_PERM
           
 
Constructor Summary
ResourceLocalizationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher, ContainerExecutor exec, DeletionService delService, LocalDirsHandlerService dirsHandler)
           
 
Method Summary
 void handle(LocalizationEvent event)
           
 LocalizerHeartbeatResponse heartbeat(LocalizerStatus status)
           
 void init(org.apache.hadoop.conf.Configuration conf)
           
 void start()
           
 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

NM_PRIVATE_DIR

public static final String NM_PRIVATE_DIR
See Also:
Constant Field Values

NM_PRIVATE_PERM

public static final org.apache.hadoop.fs.permission.FsPermission NM_PRIVATE_PERM

dispatcher

protected final org.apache.hadoop.yarn.event.Dispatcher dispatcher
Constructor Detail

ResourceLocalizationService

public ResourceLocalizationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher,
                                   ContainerExecutor exec,
                                   DeletionService delService,
                                   LocalDirsHandlerService dirsHandler)
Method Detail

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

heartbeat

public LocalizerHeartbeatResponse heartbeat(LocalizerStatus status)
Specified by:
heartbeat in interface LocalizationProtocol

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

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

handle

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


Copyright © 2013 Apache Software Foundation. All Rights Reserved.