org.huihoo.jfox.system
Class ServiceSupport
java.lang.Object
org.huihoo.jfox.system.ComponentSupport
org.huihoo.jfox.system.ServiceSupport
- All Implemented Interfaces:
- Component, Loggable, Persistentable, java.lang.Runnable, java.io.Serializable, Service
- Direct Known Subclasses:
- ContainerInvokerSupport, ServiceWrapper
- public abstract class ServiceSupport
- extends ComponentSupport
- implements Service
- See Also:
- Serialized Form
|
Method Summary |
protected abstract void |
doStart()
do actually start action |
protected abstract void |
doStop()
do actually stop action |
boolean |
isRunning()
the running flag |
void |
start()
doStart the system, doCreate is already called |
void |
stop()
doStop the system |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
run |
ServiceSupport
public ServiceSupport()
ServiceSupport
public ServiceSupport(java.lang.String name)
isRunning
public boolean isRunning()
- Description copied from interface:
Service
- the running flag
- Specified by:
isRunning in interface Service
start
public void start()
throws java.lang.Exception
- Description copied from interface:
Service
- doStart the system, doCreate is already called
- Specified by:
start in interface Service
- Throws:
java.lang.Exception
stop
public void stop()
throws java.lang.Exception
- Description copied from interface:
Service
- doStop the system
- Specified by:
stop in interface Service
- Throws:
java.lang.Exception
doStart
protected abstract void doStart()
throws java.lang.Exception
- do actually start action
- Throws:
java.lang.Exception
doStop
protected abstract void doStop()
throws java.lang.Exception
- do actually stop action
- Throws:
java.lang.Exception