public class AuxServices extends org.apache.hadoop.service.AbstractService implements org.apache.hadoop.service.ServiceStateChangeListener, org.apache.hadoop.yarn.event.EventHandler<AuxServicesEvent>
| Modifier and Type | Field and Description |
|---|---|
static String |
NM_AUX_SERVICE_DIR |
static org.apache.hadoop.fs.permission.FsPermission |
NM_AUX_SERVICE_DIR_PERM |
protected Map<String,org.apache.hadoop.yarn.server.api.AuxiliaryService> |
serviceMap |
protected Map<String,ByteBuffer> |
serviceMetaData |
| Constructor and Description |
|---|
AuxServices(org.apache.hadoop.yarn.server.api.AuxiliaryLocalPathHandler auxiliaryLocalPathHandler,
Context nmContext,
DeletionService deletionService) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addService(String name,
org.apache.hadoop.yarn.server.api.AuxiliaryService service) |
Map<String,ByteBuffer> |
getMetaData() |
void |
handle(AuxServicesEvent event) |
void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
void |
serviceStart() |
void |
serviceStop() |
void |
stateChanged(org.apache.hadoop.service.Service service) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic static final String NM_AUX_SERVICE_DIR
public static final org.apache.hadoop.fs.permission.FsPermission NM_AUX_SERVICE_DIR_PERM
protected final Map<String,org.apache.hadoop.yarn.server.api.AuxiliaryService> serviceMap
protected final Map<String,ByteBuffer> serviceMetaData
public AuxServices(org.apache.hadoop.yarn.server.api.AuxiliaryLocalPathHandler auxiliaryLocalPathHandler,
Context nmContext,
DeletionService deletionService)
protected final void addService(String name, org.apache.hadoop.yarn.server.api.AuxiliaryService service)
public Map<String,ByteBuffer> getMetaData()
public void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws Exception
serviceInit in class org.apache.hadoop.service.AbstractServiceExceptionpublic void serviceStart()
throws Exception
serviceStart in class org.apache.hadoop.service.AbstractServiceExceptionpublic void serviceStop()
throws Exception
serviceStop in class org.apache.hadoop.service.AbstractServiceExceptionpublic void stateChanged(org.apache.hadoop.service.Service service)
stateChanged in interface org.apache.hadoop.service.ServiceStateChangeListenerpublic void handle(AuxServicesEvent event)
handle in interface org.apache.hadoop.yarn.event.EventHandler<AuxServicesEvent>Copyright © 2008–2022 Apache Software Foundation. All rights reserved.