public class DefaultTransactionMonitor extends Object implements org.apache.geronimo.transaction.manager.TransactionManagerMonitor, TransactionMonitor, Synchronization
Modifier and Type | Field and Description |
---|---|
protected Map<Object,DefaultTransactionStatistics> |
activeStatistics |
protected boolean |
enabled |
protected TransactionStatistics |
lastCommittedStatistics |
protected TransactionStatistics |
lastRollbackedStatistics |
protected static org.apache.commons.logging.Log |
log |
protected ObjectInstance |
self |
protected org.apache.geronimo.transaction.manager.TransactionManagerImpl |
tm |
NAME
Constructor and Description |
---|
DefaultTransactionMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
afterCompletion(int code) |
void |
beforeCompletion() |
protected void |
bindManagementInterface() |
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() |
protected org.apache.geronimo.transaction.manager.TransactionManagerImpl |
lookup() |
protected DefaultTransactionStatistics |
thisStatistics() |
void |
threadAssociated(Transaction tx) |
void |
threadUnassociated(Transaction tx) |
boolean |
toggle() |
protected void |
unbindManagementInterface() |
void |
uninstall() |
protected static final org.apache.commons.logging.Log log
protected org.apache.geronimo.transaction.manager.TransactionManagerImpl tm
protected boolean enabled
protected ObjectInstance self
protected TransactionStatistics lastCommittedStatistics
protected TransactionStatistics lastRollbackedStatistics
protected final Map<Object,DefaultTransactionStatistics> activeStatistics
public DefaultTransactionMonitor()
protected void bindManagementInterface()
protected void unbindManagementInterface()
protected 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
protected DefaultTransactionStatistics thisStatistics()
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 © 2015 Nuxeo SA. All rights reserved.