org.apache.geronimo.transaction.manager
Interface TransactionLog

All Known Implementing Classes:
HOWLLog, UnrecoverableLog

public interface TransactionLog

Interface used to notify a logging subsystem of transaction events.

Version:
$Rev: 476049 $ $Date: 2006-11-16 23:35:17 -0500 (Thu, 16 Nov 2006) $

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 © 2003-2009 The Apache Software Foundation. All Rights Reserved.