Service.STATE| Constructor and Description |
|---|
FilterService(Service service) |
| Modifier and Type | Method and Description |
|---|---|
HiveConf |
getHiveConf()
Get the configuration of this service.
|
String |
getName()
Get the name of this service.
|
Service.STATE |
getServiceState()
Get the current service state
|
long |
getStartTime()
Get the service start time
|
void |
init(HiveConf config)
Initialize the service.
|
void |
register(ServiceStateChangeListener listener)
Register an instance of the service state change events.
|
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
void |
unregister(ServiceStateChangeListener listener)
Unregister a previously instance of the service state change events.
|
public FilterService(Service service)
public void init(HiveConf config)
ServiceService.STATE.NOTINITED to Service.STATE.INITED unless the
operation failed and an exception was raised.public void start()
ServiceService.STATE.INITED to Service.STATE.STARTED unless the
operation failed and an exception was raised.public void stop()
Servicepublic void register(ServiceStateChangeListener listener)
Servicepublic void unregister(ServiceStateChangeListener listener)
Serviceunregister in interface Servicelistener - the listener to unregister.public String getName()
Servicepublic HiveConf getHiveConf()
ServicegetHiveConf in interface Servicepublic Service.STATE getServiceState()
ServicegetServiceState in interface Servicepublic long getStartTime()
ServicegetStartTime in interface ServiceCopyright © 2019 The Apache Software Foundation. All Rights Reserved.