public class CompositeService extends AbstractService
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositeService.CompositeServiceShutdownHook
JVM Shutdown hook for CompositeService which will stop the given
CompositeService gracefully in case of JVM shutdown.
|
Service.STATE| Constructor and Description |
|---|
CompositeService(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addService(Service service) |
Collection<Service> |
getServices() |
void |
init(HiveConf hiveConf)
Initialize the service.
|
protected boolean |
removeService(Service service) |
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
getHiveConf, getName, getServiceState, getStartTime, register, setHiveConf, unregisterpublic CompositeService(String name)
public Collection<Service> getServices()
protected void addService(Service service)
protected boolean removeService(Service service)
public void init(HiveConf hiveConf)
AbstractServiceService.STATE.NOTINITED to Service.STATE.INITED unless the
operation failed and an exception was raised.init in interface Serviceinit in class AbstractServicepublic void start()
AbstractServiceService.STATE.INITED to Service.STATE.STARTED unless the
operation failed and an exception was raised.start in interface Servicestart in class AbstractServicepublic void stop()
AbstractServicestop in interface Servicestop in class AbstractServiceCopyright © 2019 The Apache Software Foundation. All Rights Reserved.