|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hive.service.AbstractService
public abstract class AbstractService
AbstractService.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.hive.service.Service |
|---|
Service.STATE |
| Constructor Summary | |
|---|---|
AbstractService(String name)
Construct the service. |
|
| Method Summary | |
|---|---|
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 hiveConf)
Initialize the service. |
void |
register(ServiceStateChangeListener l)
Register an instance of the service state change events. |
void |
start()
Start the service. |
void |
stop()
Stop the service. |
void |
unregister(ServiceStateChangeListener l)
Unregister a previously instance of the service state change events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractService(String name)
name - service name| Method Detail |
|---|
public Service.STATE getServiceState()
Service
getServiceState in interface Servicepublic void init(HiveConf hiveConf)
Service.STATE.NOTINITED to Service.STATE.INITED unless the
operation failed and an exception was raised.
init in interface ServiceIllegalStateException - if the current service state does not permit
this actionpublic void start()
Service.STATE.INITED to Service.STATE.STARTED unless the
operation failed and an exception was raised.
start in interface ServiceIllegalStateException - if the current service state does not permit
this actionpublic void stop()
stop in interface ServiceIllegalStateException - if the current service state does not permit
this actionpublic void register(ServiceStateChangeListener l)
Service
register in interface Servicel - a new listenerpublic void unregister(ServiceStateChangeListener l)
Service
unregister in interface Servicel - the listener to unregister.public String getName()
Service
getName in interface Servicepublic HiveConf getHiveConf()
Service
getHiveConf in interface Servicepublic long getStartTime()
Service
getStartTime in interface Service
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||