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, unregisterpublic BreakableService()
public BreakableService(boolean failOnInit,
boolean failOnStart,
boolean failOnStop)
public int getCount(Service.STATE state)
public void init(HiveConf conf)
AbstractServiceService.STATE.NOTINITED to Service.STATE.INITED unless the
operation failed and an exception was raised.init in interface Serviceinit in class AbstractServicepublic void start()
AbstractServiceService.STATE.INITED to Service.STATE.STARTED unless the
operation failed and an exception was raised.start in interface Servicestart in class AbstractServicepublic void stop()
AbstractServicestop in interface Servicestop in class AbstractServicepublic void setFailOnInit(boolean failOnInit)
public void setFailOnStart(boolean failOnStart)
public void setFailOnStop(boolean failOnStop)
Copyright © 2017 The Apache Software Foundation. All rights reserved.