org.apache.geronimo.connector.outbound.transactionlog
Class JDBCLog
java.lang.Object
org.apache.geronimo.connector.outbound.transactionlog.JDBCLog
- All Implemented Interfaces:
- org.apache.geronimo.gbean.GBeanLifecycle, org.apache.geronimo.transaction.manager.TransactionLog
- public class JDBCLog
- extends Object
- implements org.apache.geronimo.transaction.manager.TransactionLog, org.apache.geronimo.gbean.GBeanLifecycle
"Last Resource optimization" for single servers wishing to have valid xa transactions with
a single 1-pc datasource. The database is used for the log, and the database work is
committed when the log writes its prepare record.
- Version:
- $Revision: 1.9 $ $Date: 2004/07/22 03:39:01 $
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
JDBCLog
public JDBCLog(String systemId,
ManagedConnectionFactoryWrapper managedConnectionFactoryWrapper)
JDBCLog
public JDBCLog(String systemId,
DataSource dataSource)
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
begin
public void begin(Xid xid)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
begin
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
prepare
public long prepare(Xid xid,
List branches)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
prepare
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
commit
public void commit(Xid xid,
long logMark)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
commit
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
rollback
public void rollback(Xid xid,
long logMark)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
rollback
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
recover
public Collection recover(org.apache.geronimo.transaction.manager.XidFactory xidFactory)
throws org.apache.geronimo.transaction.manager.LogException
- Specified by:
recover
in interface org.apache.geronimo.transaction.manager.TransactionLog
- Throws:
org.apache.geronimo.transaction.manager.LogException
getXMLStats
public String getXMLStats()
- Specified by:
getXMLStats
in interface org.apache.geronimo.transaction.manager.TransactionLog
getAverageForceTime
public int getAverageForceTime()
- Specified by:
getAverageForceTime
in interface org.apache.geronimo.transaction.manager.TransactionLog
getAverageBytesPerForce
public int getAverageBytesPerForce()
- Specified by:
getAverageBytesPerForce
in interface org.apache.geronimo.transaction.manager.TransactionLog
getGBeanInfo
public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.