|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.activemq.apollo.util.JavaBaseService
public abstract class JavaBaseService
The BaseService provides helpers for dealing async service state.
Nested Class Summary | |
---|---|
static class |
JavaBaseService.STARTING
|
static class |
JavaBaseService.State
|
static class |
JavaBaseService.STOPPING
|
Field Summary | |
---|---|
protected JavaBaseService.State |
_serviceState
|
static JavaBaseService.State |
CREATED
|
static JavaBaseService.State |
STARTED
|
static JavaBaseService.State |
STOPPED
|
Constructor Summary | |
---|---|
JavaBaseService()
|
Method Summary | |
---|---|
protected abstract void |
_start(java.lang.Runnable onCompleted)
|
protected abstract void |
_stop(java.lang.Runnable onCompleted)
|
protected abstract org.fusesource.hawtdispatch.DispatchQueue |
getDispatchQueue()
|
protected JavaBaseService.State |
getServiceState()
|
void |
start()
Starts the service. |
void |
start(java.lang.Runnable onCompleted)
Starts the service. |
void |
stop()
Stops the service. |
void |
stop(java.lang.Runnable onCompleted)
Stops the service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final JavaBaseService.State CREATED
public static final JavaBaseService.State STARTED
public static final JavaBaseService.State STOPPED
protected JavaBaseService.State _serviceState
Constructor Detail |
---|
public JavaBaseService()
Method Detail |
---|
public final void start()
Service
start
in interface Service
public final void stop()
Service
stop
in interface Service
public final void start(java.lang.Runnable onCompleted)
Service
start
in interface Service
onCompleted
- my be set to null if not interested in a callback.public final void stop(java.lang.Runnable onCompleted)
Service
stop
in interface Service
onCompleted
- my be set to null if not interested in a callback.protected JavaBaseService.State getServiceState()
protected abstract org.fusesource.hawtdispatch.DispatchQueue getDispatchQueue()
protected abstract void _start(java.lang.Runnable onCompleted)
protected abstract void _stop(java.lang.Runnable onCompleted)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |