public abstract class ServiceSupport extends Object implements Service
| Constructor and Description |
|---|
ServiceSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceListener(ServiceListener l) |
static void |
dispose(Service service) |
protected abstract void |
doStart() |
protected abstract void |
doStop(ServiceStopper stopper) |
boolean |
isStarted() |
boolean |
isStopped() |
boolean |
isStopping() |
void |
removeServiceListener(ServiceListener l) |
void |
start() |
void |
stop() |
public static void dispose(Service service)
public void start()
throws Exception
public boolean isStarted()
public boolean isStopping()
public boolean isStopped()
public void addServiceListener(ServiceListener l)
public void removeServiceListener(ServiceListener l)
protected abstract void doStop(ServiceStopper stopper) throws Exception
ExceptionCopyright © 2005–2016 The Apache Software Foundation. All rights reserved.