org.objectweb.jonas.service
Class AbsDynamicServiceImpl

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.objectweb.jonas.management.ReconfigDispatcher
          extended byorg.objectweb.jonas.service.AbsServiceImpl
              extended byorg.objectweb.jonas.service.AbsDynamicServiceImpl
All Implemented Interfaces:
javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, ReconfigDispatcherMBean, java.lang.Runnable, Service

public abstract class AbsDynamicServiceImpl
extends AbsServiceImpl
implements java.lang.Runnable

Abstract implementation of a Dynamic Service


Field Summary
 
Fields inherited from class org.objectweb.jonas.management.ReconfigDispatcher
RECONFIG_TYPE, SAVE_RECONFIG_TYPE
 
Constructor Summary
AbsDynamicServiceImpl()
           
 
Method Summary
protected  void doStart()
          Starts the dynamic Service and pause for the specified amount of time.
abstract  void run()
          Abstract run method
 int waitTime()
           
 
Methods inherited from class org.objectweb.jonas.service.AbsServiceImpl
doInit, doStop, getDomainName, getJonasServerName, getName, init, isStarted, setName, start, stop
 
Methods inherited from class org.objectweb.jonas.management.ReconfigDispatcher
addNotificationListener, getFilter, getHandback, getListener, getNotificationInfo, initLogger, removeNotificationListener, sendReconfigNotification, sendSaveNotification
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
handleNotification, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbsDynamicServiceImpl

public AbsDynamicServiceImpl()
Method Detail

run

public abstract void run()
                  throws ServiceException
Abstract run method

Specified by:
run in interface java.lang.Runnable
Throws:
ServiceException - (see subclasses documentation)

waitTime

public int waitTime()
Returns:
Returns the time to wait

doStart

protected final void doStart()
Starts the dynamic Service and pause for the specified amount of time.

Specified by:
doStart in class AbsServiceImpl