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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
int
int
prepare
(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:
begin
in interfaceTransactionLog
- Throws:
LogException
-
prepare
Description copied from interface:TransactionLog
log prepare for the global xid xid and the list of TransactionBranchInfo branches- Specified by:
prepare
in 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:
commit
in interfaceTransactionLog
- Throws:
LogException
-
rollback
- Specified by:
rollback
in interfaceTransactionLog
- Throws:
LogException
-
recover
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 interfaceTransactionLog
- Parameters:
xidFactory
- Xid factory- Returns:
- Map of recovered xid to List of TransactionBranchInfo representing the branches.
- Throws:
LogException
- on error
-
getXMLStats
- Specified by:
getXMLStats
in interfaceTransactionLog
-
getAverageForceTime
public int getAverageForceTime()- Specified by:
getAverageForceTime
in interfaceTransactionLog
-
getAverageBytesPerForce
public int getAverageBytesPerForce()- Specified by:
getAverageBytesPerForce
in interfaceTransactionLog
-