public abstract class JavaBaseService extends Object implements Service
The BaseService provides helpers for dealing async service state.
| Modifier and Type | Class and Description |
|---|---|
static class |
JavaBaseService.STARTING |
static class |
JavaBaseService.State |
static class |
JavaBaseService.STOPPING |
| Modifier and Type | Field and Description |
|---|---|
protected JavaBaseService.State |
_serviceState |
static JavaBaseService.State |
CREATED |
static JavaBaseService.State |
STARTED |
static JavaBaseService.State |
STOPPED |
| Constructor and Description |
|---|
JavaBaseService() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
_start(org.fusesource.hawtdispatch.Task onCompleted) |
protected abstract void |
_stop(org.fusesource.hawtdispatch.Task onCompleted) |
protected abstract org.fusesource.hawtdispatch.DispatchQueue |
getDispatchQueue() |
protected JavaBaseService.State |
getServiceState() |
void |
start(org.fusesource.hawtdispatch.Task onCompleted)
Starts the service.
|
void |
stop(org.fusesource.hawtdispatch.Task onCompleted)
Stops the service.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitservice_failurepublic static final JavaBaseService.State CREATED
public static final JavaBaseService.State STARTED
public static final JavaBaseService.State STOPPED
protected JavaBaseService.State _serviceState
public final void start(org.fusesource.hawtdispatch.Task onCompleted)
Servicepublic final void stop(org.fusesource.hawtdispatch.Task onCompleted)
Serviceprotected JavaBaseService.State getServiceState()
protected abstract org.fusesource.hawtdispatch.DispatchQueue getDispatchQueue()
protected abstract void _start(org.fusesource.hawtdispatch.Task onCompleted)
protected abstract void _stop(org.fusesource.hawtdispatch.Task onCompleted)
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.