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() |
Modifier and Type | Method and Description |
---|---|
protected void |
addService(String name,
org.apache.hadoop.yarn.server.api.AuxiliaryService service) |
Map<String,ByteBuffer> |
getMetaData() |
Map<String,ByteBuffer> |
getMetaData(org.apache.hadoop.yarn.server.api.ContainerInitializationContext ctx) |
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
protected final void addService(String name, org.apache.hadoop.yarn.server.api.AuxiliaryService service)
public Map<String,ByteBuffer> getMetaData()
public Map<String,ByteBuffer> getMetaData(org.apache.hadoop.yarn.server.api.ContainerInitializationContext ctx)
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 © 2017 Apache Software Foundation. All Rights Reserved.