Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » txtimer » [javadoc | source]
org.jboss.ejb.txtimer
public class: GeneralPurposeDatabasePersistencePlugin [javadoc | source]
java.lang.Object
   org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin

All Implemented Interfaces:
    DatabasePersistencePluginExt

Direct Known Subclasses:
    OracleDatabasePersistencePlugin

This DatabasePersistencePlugin uses getBytes/setBytes to persist the serializable objects associated with the timer.
Field Summary
protected  MBeanServer server    The mbean server 
protected  ObjectName dataSourceName    The service attributes 
protected  String tableName    The timers table name 
protected  DataSource ds    The data source the timers will be persisted to 
protected  ObjectName metaDataName    datasource meta data 
Method from org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin Summary:
clearTimers,   createTableIfNotExists,   deleteTimer,   deserialize,   deserialize,   getColumnInfo,   getColumnInitialDate,   getColumnInstancePK,   getColumnTargetID,   getColumnTimerID,   getColumnTimerInterval,   getTableName,   init,   init,   insertTimer,   selectTimers,   serialize
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin Detail:
 public  void clearTimers() throws SQLException 
    Clear all persisted timers
 public  void createTableIfNotExists() throws SQLException 
    Create the timer table if it does not exist already
 public  void deleteTimer(String timerId,
    TimedObjectId timedObjectId) throws SQLException 
    Delete a timer.
 protected Object deserialize(byte[] bytes) 
    Deserialize an object
 protected Object deserialize(InputStream input) 
    Deserialize an object
 public String getColumnInfo() 
    Get the info column name
 public String getColumnInitialDate() 
    Get the initial date column name
 public String getColumnInstancePK() 
    Get the instance PK column name
 public String getColumnTargetID() 
    Get the target ID column name
 public String getColumnTimerID() 
    Get the timer ID column name
 public String getColumnTimerInterval() 
    Get the timer interval column name
 public String getTableName() 
    Get the timer table name
 public  void init(MBeanServer server,
    ObjectName dataSourceName) throws SQLException 
    Initialize the plugin
 public  void init(MBeanServer server,
    ObjectName dataSource,
    String tableName) throws SQLException 
    Initialize the plugin and set also the timers tablename
 public  void insertTimer(String timerId,
    TimedObjectId timedObjectId,
    Date initialExpiration,
    long intervalDuration,
    Serializable info) throws SQLException 
    Insert a timer object
 public List selectTimers(ObjectName containerId) throws SQLException 
    Select a list of currently persisted timer handles
 protected byte[] serialize(Object obj) 
    Serialize an object