org.huihoo.jfox.system
Interface Service

All Superinterfaces:
Component, Loggable, Persistentable, java.lang.Runnable, java.io.Serializable
All Known Implementing Classes:
ServiceSupport

public interface Service
extends Component, java.lang.Runnable

define Constants and Method needed by common system


Method Summary
 boolean isRunning()
          the running flag
 void start()
          doStart the system, doCreate is already called
 void stop()
          doStop the system
 
Methods inherited from interface org.huihoo.jfox.system.Component
destroy, getName, getState, init
 
Methods inherited from interface org.huihoo.jfox.system.Loggable
getLogger
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

isRunning

public boolean isRunning()
the running flag


start

public void start()
           throws java.lang.Exception
doStart the system, doCreate is already called

Throws:
java.lang.Exception

stop

public void stop()
          throws java.lang.Exception
doStop the system

Throws:
java.lang.Exception