|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.common.service.AbstractService
public abstract class AbstractService
A helper template for implementing VoldemortService
Constructor Summary | |
---|---|
AbstractService(ServiceType type)
|
Method Summary | |
---|---|
ServiceType |
getType()
|
boolean |
isStarted()
|
void |
start()
Start the service. |
protected abstract void |
startInner()
|
void |
stop()
Stop the service |
protected abstract void |
stopInner()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractService(ServiceType type)
Method Detail |
---|
public ServiceType getType()
getType
in interface VoldemortService
public boolean isStarted()
isStarted
in interface VoldemortService
public void start()
VoldemortService
start
in interface VoldemortService
public void stop()
VoldemortService
stop
in interface VoldemortService
protected abstract void startInner()
protected abstract void stopInner()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |