org.jboss.ejb.txtimer
Interface DatabasePersistencePolicyMBean

All Superinterfaces:
PersistencePolicy, Service, ServiceMBean
All Known Implementing Classes:
DatabasePersistencePolicy

public interface DatabasePersistencePolicyMBean
extends ServiceMBean, PersistencePolicy

MBean interface.

Since:
09-Sep-2004
Version:
$Revision: 62320 $
Author:
Thomas.Diesler@jboss.org, Dimitris.Andreadis@jboss.org

Field Summary
static ObjectName OBJECT_NAME
          The default object name
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 String getDatabasePersistencePlugin()
           
 ObjectName getDataSource()
           
 String getTimersTable()
           
 void resetAndRestoreTimers()
          Re-read the current persistent timers list, clear the db of timers, and restore the timers.
 void setDatabasePersistencePlugin(String dbpPluginClass)
          The used database persistence plugin class
 void setDataSource(ObjectName dataSource)
          The used datasource
 void setTimersTable(String tableName)
          The timers table name
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 
Methods inherited from interface org.jboss.ejb.txtimer.PersistencePolicy
clearTimers, deleteTimer, insertTimer, listTimerHandles, listTimerHandles
 

Field Detail

OBJECT_NAME

static final ObjectName OBJECT_NAME
The default object name

Method Detail

setDataSource

void setDataSource(ObjectName dataSource)
The used datasource


getDataSource

ObjectName getDataSource()

setDatabasePersistencePlugin

void setDatabasePersistencePlugin(String dbpPluginClass)
The used database persistence plugin class


getDatabasePersistencePlugin

String getDatabasePersistencePlugin()

setTimersTable

void setTimersTable(String tableName)
The timers table name


getTimersTable

String getTimersTable()

resetAndRestoreTimers

void resetAndRestoreTimers()
                           throws SQLException
Re-read the current persistent timers list, clear the db of timers, and restore the timers.

Throws:
SQLException


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.