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 |
---|---|
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) |
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, waitForServiceToStop
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)
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.AbstractService
Exception
public void serviceStart() throws Exception
serviceStart
in class org.apache.hadoop.service.AbstractService
Exception
public void serviceStop() throws Exception
serviceStop
in class org.apache.hadoop.service.AbstractService
Exception
public void stateChanged(org.apache.hadoop.service.Service service)
stateChanged
in interface org.apache.hadoop.service.ServiceStateChangeListener
public void handle(AuxServicesEvent event)
handle
in interface org.apache.hadoop.yarn.event.EventHandler<AuxServicesEvent>
Copyright © 2018 Apache Software Foundation. All Rights Reserved.