Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » txtimer » [javadoc | source]
org.jboss.ejb.txtimer
public class: DatabasePersistencePolicy [javadoc | source]
java.lang.Object
   org.jboss.mx.util.JBossNotificationBroadcasterSupport
      org.jboss.system.ServiceMBeanSupport
         org.jboss.ejb.txtimer.DatabasePersistencePolicy

All Implemented Interfaces:
    DatabasePersistencePolicyMBean, org.jboss.kernel.spi.dependency.KernelControllerContextAware, ServiceMBean, MBeanRegistration, NotificationEmitter

This service implements a PersistencePolicy that persistes the timer to a database.
Fields inherited from org.jboss.system.ServiceMBeanSupport:
SERVICE_CONTROLLER_SIG,  log,  server,  serviceName
Method from org.jboss.ejb.txtimer.DatabasePersistencePolicy Summary:
clearTimers,   deleteTimer,   getDataSource,   getDatabasePersistencePlugin,   getTimersTable,   insertTimer,   listTimerHandles,   listTimerHandles,   resetAndRestoreTimers,   restoreTimers,   setDataSource,   setDatabasePersistencePlugin,   setTimersTable,   startService
Methods from org.jboss.system.ServiceMBeanSupport:
create,   createService,   destroy,   destroyService,   getDeploymentInfo,   getLog,   getName,   getNextNotificationSequenceNumber,   getObjectName,   getServer,   getServiceName,   getState,   getStateString,   jbossInternalCreate,   jbossInternalDescription,   jbossInternalDestroy,   jbossInternalLifecycle,   jbossInternalStart,   jbossInternalStop,   pojoChange,   pojoCreate,   pojoDestroy,   pojoStart,   pojoStop,   postDeregister,   postRegister,   preDeregister,   preRegister,   setKernelControllerContext,   start,   startService,   stop,   stopService,   unsetKernelControllerContext
Methods from org.jboss.mx.util.JBossNotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   nextNotificationSequenceNumber,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.txtimer.DatabasePersistencePolicy Detail:
 public  void clearTimers() 
    Delete all persisted timers
 public  void deleteTimer(String timerId,
    TimedObjectId timedObjectId) 
    Removes the timer from persistent storage.
 public ObjectName getDataSource() 
 public String getDatabasePersistencePlugin() 
 public String getTimersTable() 
 public  void insertTimer(String timerId,
    TimedObjectId timedObjectId,
    Date firstEvent,
    long intervalDuration,
    Serializable info) 
    Creates the timer in persistent storage.
 public List listTimerHandles() 
    Return a List of TimerHandle objects.
 public List listTimerHandles(ObjectName containerId,
    ClassLoader loader) 
    List the persisted timer handles for a particular container
 public  void resetAndRestoreTimers() throws SQLException 
    Re-read the current persistent timers list, clear the db of timers, and restore the timers.
 public  void restoreTimers() 
    Restore the persistent timers seen during service startup
 public  void setDataSource(ObjectName dataSource) 
 public  void setDatabasePersistencePlugin(String dbpPluginClass) 
 public  void setTimersTable(String timersTable) 
 public  void startService() throws Exception 
    Initializes this service.