public abstract class ServiceSupport extends java.lang.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() |
protected void |
postStop(ServiceStopper stopper)
handle for various operations after stopping the service (like locking)
|
protected void |
preStart()
handle for various operations before starting the service (like locking)
|
void |
removeServiceListener(ServiceListener l) |
void |
start() |
void |
stop() |
public static void dispose(Service service)
public void start() throws java.lang.Exception
public void stop() throws java.lang.Exception
public boolean isStarted()
public boolean isStopping()
public boolean isStopped()
public void addServiceListener(ServiceListener l)
public void removeServiceListener(ServiceListener l)
protected void postStop(ServiceStopper stopper) throws java.lang.Exception
java.lang.Exception
protected abstract void doStop(ServiceStopper stopper) throws java.lang.Exception
java.lang.Exception
protected void preStart() throws java.lang.Exception
java.lang.Exception
protected abstract void doStart() throws java.lang.Exception
java.lang.Exception
Copyright © 2005-2013 Red Hat, Inc.. All Rights Reserved.