org.apache.geronimo.transaction.log
Class UnrecoverableLog

java.lang.Object
  extended by org.apache.geronimo.transaction.log.UnrecoverableLog
All Implemented Interfaces:
TransactionLog

public class UnrecoverableLog
extends Object
implements TransactionLog

A log sink that doesn't actually do anything. Not recommended for production use as heuristic recovery will be needed if the transaction coordinator dies.


Constructor Summary
UnrecoverableLog()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnrecoverableLog

public UnrecoverableLog()
Method Detail

begin

public void begin(Xid xid)
           throws LogException
Specified by:
begin in interface TransactionLog
Throws:
LogException

prepare

public Object prepare(Xid xid,
                      List branches)
               throws LogException
Description copied from interface: TransactionLog
log prepare for the global xid xid and the list of TransactionBranchInfo branches

Specified by:
prepare in interface TransactionLog
Parameters:
xid - global xid for the transactions
branches - List of TransactionBranchInfo
Throws:
LogException

commit

public void commit(Xid xid,
                   Object logMark)
            throws LogException
Specified by:
commit in interface TransactionLog
Throws:
LogException

rollback

public void rollback(Xid xid,
                     Object logMark)
              throws LogException
Specified by:
rollback in interface TransactionLog
Throws:
LogException

recover

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

Specified by:
recover in interface TransactionLog
Returns:
Map of recovered xid to List of TransactionBranchInfo representing the branches.
Throws:
LogException

getXMLStats

public String getXMLStats()
Specified by:
getXMLStats in interface TransactionLog

getAverageForceTime

public int getAverageForceTime()
Specified by:
getAverageForceTime in interface TransactionLog

getAverageBytesPerForce

public int getAverageBytesPerForce()
Specified by:
getAverageBytesPerForce in interface TransactionLog


Copyright © 2006 Apache Software Foundation. All Rights Reserved.