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, unregister
public CompositeService(String name)
public Collection<Service> getServices()
protected void addService(Service service)
protected boolean removeService(Service service)
public void init(HiveConf hiveConf)
AbstractService
Service.STATE.NOTINITED
to Service.STATE.INITED
unless the
operation failed and an exception was raised.init
in interface Service
init
in class AbstractService
public void start()
AbstractService
Service.STATE.INITED
to Service.STATE.STARTED
unless the
operation failed and an exception was raised.start
in interface Service
start
in class AbstractService
public void stop()
AbstractService
stop
in interface Service
stop
in class AbstractService
Copyright © 2017 The Apache Software Foundation. All rights reserved.