Class UnrecoverableLog
java.lang.Object
org.apache.geronimo.transaction.log.UnrecoverableLog
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidintintprepare(Xid xid, List<? extends TransactionBranchInfo> branches) log prepare for the global xid xid and the list of TransactionBranchInfo branchesrecover(XidFactory xidFactory) Recovers the log, returning a map of (top level) xid to List of TransactionBranchInfo for the branches.void
-
Constructor Details
-
UnrecoverableLog
public UnrecoverableLog()
-
-
Method Details
-
begin
- Specified by:
beginin interfaceTransactionLog- Throws:
LogException
-
prepare
Description copied from interface:TransactionLoglog prepare for the global xid xid and the list of TransactionBranchInfo branches- Specified by:
preparein interfaceTransactionLog- Parameters:
xid- global xid for the transactionsbranches- List of TransactionBranchInfo- Returns:
- log mark to use in commit/rollback calls.
- Throws:
LogException- on error
-
commit
- Specified by:
commitin interfaceTransactionLog- Throws:
LogException
-
rollback
- Specified by:
rollbackin interfaceTransactionLog- Throws:
LogException
-
recover
Description copied from interface:TransactionLogRecovers 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:
recoverin interfaceTransactionLog- Parameters:
xidFactory- Xid factory- Returns:
- Map of recovered xid to List of TransactionBranchInfo representing the branches.
- Throws:
LogException- on error
-
getXMLStats
- Specified by:
getXMLStatsin interfaceTransactionLog
-
getAverageForceTime
public int getAverageForceTime()- Specified by:
getAverageForceTimein interfaceTransactionLog
-
getAverageBytesPerForce
public int getAverageBytesPerForce()- Specified by:
getAverageBytesPerForcein interfaceTransactionLog
-