|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb.txtimer.GeneralPurposeDatabasePersistencePlugin
This DatabasePersistencePlugin uses getBytes/setBytes to persist the serializable objects associated with the timer.
Field Summary | |
protected ObjectName (src) |
dataSourceName
|
protected DataSource (src) |
ds
|
protected ObjectName (src) |
metaDataName
|
protected MBeanServer (src) |
server
|
Constructor Summary | |
GeneralPurposeDatabasePersistencePlugin()
|
Method Summary | |
void |
clearTimers()
Clear all persisted timers |
void |
createTableIfNotExists()
Create the timer table if it does not exist already |
void |
deleteTimer(java.lang.String timerId,
TimedObjectId (src) timedObjectId)
Delete a timer. |
protected java.lang.Object |
deserialize(byte[] bytes)
Deserialize an object |
protected java.lang.Object |
deserialize(java.io.InputStream input)
Deserialize an object |
java.lang.String |
getColumnInfo()
Get the info column name |
java.lang.String |
getColumnInitialDate()
Get the initial date column name |
java.lang.String |
getColumnInstancePK()
Get the instance PK column name |
java.lang.String |
getColumnTargetID()
Get the target ID column name |
java.lang.String |
getColumnTimerID()
Get the timer ID column name |
java.lang.String |
getColumnTimerInterval()
Get the timer interval column name |
java.lang.String |
getTableName()
Get the timer table name |
void |
init(MBeanServer (src) server,
ObjectName (src) dataSourceName)
Initialize the plugin |
void |
insertTimer(java.lang.String timerId,
TimedObjectId (src) timedObjectId,
java.util.Date initialExpiration,
long intervalDuration,
java.io.Serializable info)
Insert a timer object |
java.util.List |
selectTimers()
Select a list of currently persisted timer handles |
protected byte[] |
serialize(java.lang.Object obj)
Serialize an object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ObjectName (src) dataSourceName
protected MBeanServer (src) server
protected DataSource (src) ds
protected ObjectName (src) metaDataName
Constructor Detail |
public GeneralPurposeDatabasePersistencePlugin()
Method Detail |
public void init(MBeanServer (src) server, ObjectName (src) dataSourceName) throws java.sql.SQLException
init
in interface DatabasePersistencePlugin (src)
java.sql.SQLException
public void createTableIfNotExists() throws java.sql.SQLException
createTableIfNotExists
in interface DatabasePersistencePlugin (src)
java.sql.SQLException
public void insertTimer(java.lang.String timerId, TimedObjectId (src) timedObjectId, java.util.Date initialExpiration, long intervalDuration, java.io.Serializable info) throws java.sql.SQLException
insertTimer
in interface DatabasePersistencePlugin (src)
java.sql.SQLException
public java.util.List selectTimers() throws java.sql.SQLException
selectTimers
in interface DatabasePersistencePlugin (src)
java.sql.SQLException
public void deleteTimer(java.lang.String timerId, TimedObjectId (src) timedObjectId) throws java.sql.SQLException
deleteTimer
in interface DatabasePersistencePlugin (src)
java.sql.SQLException
public void clearTimers() throws java.sql.SQLException
clearTimers
in interface DatabasePersistencePlugin (src)
java.sql.SQLException
public java.lang.String getTableName()
getTableName
in interface DatabasePersistencePlugin (src)
public java.lang.String getColumnTimerID()
getColumnTimerID
in interface DatabasePersistencePlugin (src)
public java.lang.String getColumnTargetID()
getColumnTargetID
in interface DatabasePersistencePlugin (src)
public java.lang.String getColumnInitialDate()
getColumnInitialDate
in interface DatabasePersistencePlugin (src)
public java.lang.String getColumnTimerInterval()
getColumnTimerInterval
in interface DatabasePersistencePlugin (src)
public java.lang.String getColumnInstancePK()
getColumnInstancePK
in interface DatabasePersistencePlugin (src)
public java.lang.String getColumnInfo()
getColumnInfo
in interface DatabasePersistencePlugin (src)
protected byte[] serialize(java.lang.Object obj)
protected java.lang.Object deserialize(byte[] bytes)
protected java.lang.Object deserialize(java.io.InputStream input)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |