org.apache.geronimo.transaction.manager
Interface TransactionLog

All Known Implementing Classes:
HOWLLog, HOWLLogGBean, UnrecoverableLog

public interface TransactionLog

Interface used to notify a logging subsystem of transaction events.


Method Summary
 void begin(Xid xid)
           
 void commit(Xid xid, Object logMark)
           
 int getAverageBytesPerForce()
           
 int getAverageForceTime()
           
 String getXMLStats()
           
 Object prepare(Xid xid, List branches)
          log prepare for the global xid xid and the list of TransactionBranchInfo branches
 Collection recover(XidFactory xidFactory)
          Recovers the log, returning a map of (top level) xid to List of TransactionBranchInfo for the branches.
 void rollback(Xid xid, Object logMark)
           
 

Method Detail

begin

void begin(Xid xid)
           throws LogException
Throws:
LogException

prepare

Object prepare(Xid xid,
               List branches)
               throws LogException
log prepare for the global xid xid and the list of TransactionBranchInfo branches

Parameters:
xid - global xid for the transactions
branches - List of TransactionBranchInfo
Throws:
LogException

commit

void commit(Xid xid,
            Object logMark)
            throws LogException
Throws:
LogException

rollback

void rollback(Xid xid,
              Object logMark)
              throws LogException
Throws:
LogException

recover

Collection recover(XidFactory xidFactory)
                   throws LogException
Recovers the log, returning a map of (top level) xid to List of TransactionBranchInfo for the branches. Uses the XidFactory to reconstruct the xids.

Parameters:
xidFactory -
Returns:
Map of recovered xid to List of TransactionBranchInfo representing the branches.
Throws:
LogException

getXMLStats

String getXMLStats()

getAverageForceTime

int getAverageForceTime()

getAverageBytesPerForce

int getAverageBytesPerForce()


Copyright © 2006 Apache Software Foundation. All Rights Reserved.