public class TxStats extends Object implements TxStatsMBean
| Modifier and Type | Method and Description |
|---|---|
static boolean |
enabled() |
static TxStats |
getInstance() |
long |
getNumberOfAbortedTransactions()
Returns the number of aborted (i.e.
|
long |
getNumberOfApplicationRollbacks()
Returns the number of transactions that have been rolled back by application request.
|
long |
getNumberOfCommittedTransactions()
Returns the number of committed transactions
|
long |
getNumberOfHeuristics()
Returns the number of transactions which have terminated with heuristic outcomes.
|
long |
getNumberOfInflightTransactions()
Get the number of transactions that have begun but not yet terminated.
|
long |
getNumberOfNestedTransactions()
Returns the total number of nested (sub) transactions created.
|
long |
getNumberOfResourceRollbacks()
Returns the number of transactions that rolled back due to resource (participant) failure.
|
long |
getNumberOfTimedOutTransactions()
Returns the number of transactions that have rolled back due to timeout.
|
long |
getNumberOfTransactions()
Returns the total number of transactions (top-level and nested) created
|
void |
printStatus(PrintWriter pw)
Print all of the current statistics information.
|
public static boolean enabled()
public static TxStats getInstance()
public long getNumberOfTransactions()
TxStatsMBeangetNumberOfTransactions in interface TxStatsMBeanpublic long getNumberOfNestedTransactions()
TxStatsMBeangetNumberOfNestedTransactions in interface TxStatsMBeanpublic long getNumberOfHeuristics()
TxStatsMBeangetNumberOfHeuristics in interface TxStatsMBeanpublic long getNumberOfCommittedTransactions()
TxStatsMBeangetNumberOfCommittedTransactions in interface TxStatsMBeanpublic long getNumberOfAbortedTransactions()
TxStatsMBeangetNumberOfAbortedTransactions in interface TxStatsMBeanpublic long getNumberOfInflightTransactions()
TxStatsMBeangetNumberOfInflightTransactions in interface TxStatsMBeanpublic long getNumberOfTimedOutTransactions()
TxStatsMBeangetNumberOfTimedOutTransactions in interface TxStatsMBeanpublic long getNumberOfApplicationRollbacks()
TxStatsMBeangetNumberOfApplicationRollbacks in interface TxStatsMBeanpublic long getNumberOfResourceRollbacks()
TxStatsMBeangetNumberOfResourceRollbacks in interface TxStatsMBeanpublic void printStatus(PrintWriter pw)
pw - the writer to use.Copyright © 2013. All Rights Reserved.