public class DefaultTransactionMonitor extends Object implements org.apache.geronimo.transaction.manager.TransactionManagerMonitor, TransactionMonitor, Synchronization
NAME
Constructor and Description |
---|
DefaultTransactionMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(int code) |
void |
beforeCompletion() |
long |
getActiveCount() |
List<TransactionStatistics> |
getActiveStatistics() |
boolean |
getEnabled() |
TransactionStatistics |
getLastCommittedStatistics() |
TransactionStatistics |
getLastRollbackedStatistics() |
long |
getTotalCommits() |
long |
getTotalRollbacks() |
static String |
id(Object key) |
static String |
id(Transaction tx) |
void |
install() |
org.apache.geronimo.transaction.manager.TransactionManagerImpl |
lookup() |
void |
threadAssociated(Transaction tx) |
void |
threadUnassociated(Transaction tx) |
boolean |
toggle() |
void |
uninstall() |
public org.apache.geronimo.transaction.manager.TransactionManagerImpl lookup()
public static String id(Transaction tx)
public void threadAssociated(Transaction tx)
threadAssociated
in interface org.apache.geronimo.transaction.manager.TransactionManagerMonitor
public void threadUnassociated(Transaction tx)
threadUnassociated
in interface org.apache.geronimo.transaction.manager.TransactionManagerMonitor
public List<TransactionStatistics> getActiveStatistics()
getActiveStatistics
in interface TransactionMonitor
public long getActiveCount()
getActiveCount
in interface TransactionMonitor
public long getTotalCommits()
getTotalCommits
in interface TransactionMonitor
public long getTotalRollbacks()
getTotalRollbacks
in interface TransactionMonitor
public TransactionStatistics getLastCommittedStatistics()
getLastCommittedStatistics
in interface TransactionMonitor
public TransactionStatistics getLastRollbackedStatistics()
getLastRollbackedStatistics
in interface TransactionMonitor
public void beforeCompletion()
beforeCompletion
in interface Synchronization
public void afterCompletion(int code)
afterCompletion
in interface Synchronization
public boolean toggle()
toggle
in interface TransactionMonitor
public boolean getEnabled()
getEnabled
in interface TransactionMonitor
Copyright © 2013 Nuxeo SA. All Rights Reserved.