public class BreakableService extends AbstractService
Modifier and Type | Class and Description |
---|---|
static class |
BreakableService.BrokenLifecycleEvent
The exception explicitly raised on a failure
|
Service.STATE
Constructor and Description |
---|
BreakableService() |
BreakableService(boolean failOnInit,
boolean failOnStart,
boolean failOnStop) |
Modifier and Type | Method and Description |
---|---|
int |
getCount(Service.STATE state) |
void |
init(HiveConf conf)
Initialize the service.
|
void |
setFailOnInit(boolean failOnInit) |
void |
setFailOnStart(boolean failOnStart) |
void |
setFailOnStop(boolean failOnStop) |
void |
start()
Start the service.
|
void |
stop()
Stop the service.
|
getHiveConf, getName, getServiceState, getStartTime, register, unregister
public BreakableService()
public BreakableService(boolean failOnInit, boolean failOnStart, boolean failOnStop)
public int getCount(Service.STATE state)
public void init(HiveConf conf)
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
public void setFailOnInit(boolean failOnInit)
public void setFailOnStart(boolean failOnStart)
public void setFailOnStop(boolean failOnStop)
Copyright © 2017 The Apache Software Foundation. All rights reserved.