|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvoldemort.server.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 VoldemortServicepublic boolean isStarted()
isStarted in interface VoldemortServicepublic void start()
VoldemortService
start in interface VoldemortServicepublic void stop()
VoldemortService
stop in interface VoldemortServiceprotected abstract void startInner()
protected abstract void stopInner()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||