public class ResourceLocalizationService extends org.apache.hadoop.yarn.service.CompositeService implements org.apache.hadoop.yarn.event.EventHandler<LocalizationEvent>, LocalizationProtocol
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.yarn.event.Dispatcher |
dispatcher |
static String |
NM_PRIVATE_DIR |
static org.apache.hadoop.fs.permission.FsPermission |
NM_PRIVATE_PERM |
| Constructor and Description |
|---|
ResourceLocalizationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher,
ContainerExecutor exec,
DeletionService delService,
LocalDirsHandlerService dirsHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
handle(LocalizationEvent event) |
LocalizerHeartbeatResponse |
heartbeat(LocalizerStatus status) |
void |
init(org.apache.hadoop.conf.Configuration conf) |
void |
start() |
void |
stop() |
addService, getServices, removeServicepublic static final String NM_PRIVATE_DIR
public static final org.apache.hadoop.fs.permission.FsPermission NM_PRIVATE_PERM
protected final org.apache.hadoop.yarn.event.Dispatcher dispatcher
public ResourceLocalizationService(org.apache.hadoop.yarn.event.Dispatcher dispatcher,
ContainerExecutor exec,
DeletionService delService,
LocalDirsHandlerService dirsHandler)
public void init(org.apache.hadoop.conf.Configuration conf)
init in interface org.apache.hadoop.yarn.service.Serviceinit in class org.apache.hadoop.yarn.service.CompositeServicepublic LocalizerHeartbeatResponse heartbeat(LocalizerStatus status)
heartbeat in interface LocalizationProtocolpublic void start()
start in interface org.apache.hadoop.yarn.service.Servicestart in class org.apache.hadoop.yarn.service.CompositeServicepublic void stop()
stop in interface org.apache.hadoop.yarn.service.Servicestop in class org.apache.hadoop.yarn.service.CompositeServicepublic void handle(LocalizationEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<LocalizationEvent>Copyright © 2013 Apache Software Foundation. All Rights Reserved.