public class HiveServer2 extends CompositeService
CompositeService.CompositeServiceShutdownHook
Service.STATE
Modifier and Type | Field and Description |
---|---|
static int |
SHUTDOWN_HOOK_PRIORITY |
Constructor and Description |
---|
HiveServer2() |
Modifier and Type | Method and Description |
---|---|
void |
init(HiveConf hiveConf)
Initialize the service.
|
static void |
main(java.lang.String[] args) |
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
addService, getServices, removeService
getHiveConf, getName, getServiceState, getStartTime, register, unregister
public static final int SHUTDOWN_HOOK_PRIORITY
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 CompositeService
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 CompositeService
public void stop()
AbstractService
stop
in interface Service
stop
in class CompositeService
public static void main(java.lang.String[] args)
args
- Copyright © 2012 The Apache Software Foundation