|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.connector.outbound.transactionlog.JDBCLog
public class JDBCLog
"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.
Constructor Summary | |
---|---|
JDBCLog(String systemId,
org.apache.geronimo.connector.outbound.ConnectionFactorySource managedConnectionFactoryWrapper)
|
|
JDBCLog(String systemId,
DataSource dataSource)
|
Method Summary | |
---|---|
void |
begin(Xid xid)
|
void |
commit(Xid xid,
Object logMark)
|
void |
doFail()
Fails the GBean. |
void |
doStart()
Starts the GBean. |
void |
doStop()
Stops the target. |
int |
getAverageBytesPerForce()
|
int |
getAverageForceTime()
|
String |
getXMLStats()
|
Object |
prepare(Xid xid,
List branches)
|
Collection |
recover(org.apache.geronimo.transaction.manager.XidFactory xidFactory)
|
void |
rollback(Xid xid,
Object logMark)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCLog(String systemId, org.apache.geronimo.connector.outbound.ConnectionFactorySource managedConnectionFactoryWrapper)
public JDBCLog(String systemId, DataSource dataSource)
Method Detail |
---|
public void doStart() throws Exception
GBeanLifecycle
doStart
in interface GBeanLifecycle
Exception
- if the target failed to start; this will cause a transition to the failed statepublic void doStop() throws Exception
GBeanLifecycle
doStop
in interface GBeanLifecycle
Exception
- if the target failed to stop; this will cause a transition to the failed statepublic void doFail()
GBeanLifecycle
doFail
in interface GBeanLifecycle
public void begin(Xid xid) throws org.apache.geronimo.transaction.manager.LogException
begin
in interface org.apache.geronimo.transaction.manager.TransactionLog
org.apache.geronimo.transaction.manager.LogException
public Object prepare(Xid xid, List branches) throws org.apache.geronimo.transaction.manager.LogException
prepare
in interface org.apache.geronimo.transaction.manager.TransactionLog
org.apache.geronimo.transaction.manager.LogException
public void commit(Xid xid, Object logMark) throws org.apache.geronimo.transaction.manager.LogException
commit
in interface org.apache.geronimo.transaction.manager.TransactionLog
org.apache.geronimo.transaction.manager.LogException
public void rollback(Xid xid, Object logMark) throws org.apache.geronimo.transaction.manager.LogException
rollback
in interface org.apache.geronimo.transaction.manager.TransactionLog
org.apache.geronimo.transaction.manager.LogException
public Collection recover(org.apache.geronimo.transaction.manager.XidFactory xidFactory) throws org.apache.geronimo.transaction.manager.LogException
recover
in interface org.apache.geronimo.transaction.manager.TransactionLog
org.apache.geronimo.transaction.manager.LogException
public String getXMLStats()
getXMLStats
in interface org.apache.geronimo.transaction.manager.TransactionLog
public int getAverageForceTime()
getAverageForceTime
in interface org.apache.geronimo.transaction.manager.TransactionLog
public int getAverageBytesPerForce()
getAverageBytesPerForce
in interface org.apache.geronimo.transaction.manager.TransactionLog
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |