org.apache.geronimo.timer.jdbc
Class JDBCWorkerPersistence
java.lang.Object
org.apache.geronimo.timer.jdbc.JDBCWorkerPersistence
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, WorkerPersistence
- public class JDBCWorkerPersistence
- extends Object
- implements WorkerPersistence, org.apache.geronimo.gbean.GBeanLifecycle
TODO use an insert returning or stored procedure to insert.
- Version:
- $Revision: 1.2 $ $Date: 2004/07/20 23:36:53 $
Field Summary |
static org.apache.geronimo.gbean.GBeanInfo |
GBEAN_INFO
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GBEAN_INFO
public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
JDBCWorkerPersistence
public JDBCWorkerPersistence(org.apache.geronimo.kernel.Kernel kernel,
org.apache.geronimo.connector.outbound.ManagedConnectionFactoryWrapper managedConnectionFactoryWrapper)
JDBCWorkerPersistence
protected JDBCWorkerPersistence(String serverUniqueId,
DataSource datasource)
getManagedConnectionFactoryWrapper
public org.apache.geronimo.connector.outbound.ManagedConnectionFactoryWrapper getManagedConnectionFactoryWrapper()
save
public void save(WorkInfo workInfo)
throws PersistenceException
- Specified by:
save
in interface WorkerPersistence
- Throws:
PersistenceException
cancel
public void cancel(long id)
throws PersistenceException
- Specified by:
cancel
in interface WorkerPersistence
- Throws:
PersistenceException
playback
public void playback(String key,
Playback playback)
throws PersistenceException
- Specified by:
playback
in interface WorkerPersistence
- Throws:
PersistenceException
fixedRateWorkPerformed
public void fixedRateWorkPerformed(long id)
throws PersistenceException
- Specified by:
fixedRateWorkPerformed
in interface WorkerPersistence
- Throws:
PersistenceException
intervalWorkPerformed
public void intervalWorkPerformed(long id,
long period)
throws PersistenceException
- Specified by:
intervalWorkPerformed
in interface WorkerPersistence
- Throws:
PersistenceException
getIdsByKey
public Collection getIdsByKey(String key,
Object userId)
throws PersistenceException
- Specified by:
getIdsByKey
in interface WorkerPersistence
- Throws:
PersistenceException
doStart
public void doStart()
throws org.apache.geronimo.gbean.WaitingException,
Exception
- Specified by:
doStart
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
org.apache.geronimo.gbean.WaitingException
Exception
doStop
public void doStop()
throws org.apache.geronimo.gbean.WaitingException,
Exception
- Specified by:
doStop
in interface org.apache.geronimo.gbean.GBeanLifecycle
- Throws:
org.apache.geronimo.gbean.WaitingException
Exception
doFail
public void doFail()
- Specified by:
doFail
in interface org.apache.geronimo.gbean.GBeanLifecycle
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.