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()
TxStatsMBean
getNumberOfTransactions
in interface TxStatsMBean
public long getNumberOfNestedTransactions()
TxStatsMBean
getNumberOfNestedTransactions
in interface TxStatsMBean
public long getNumberOfHeuristics()
TxStatsMBean
getNumberOfHeuristics
in interface TxStatsMBean
public long getNumberOfCommittedTransactions()
TxStatsMBean
getNumberOfCommittedTransactions
in interface TxStatsMBean
public long getNumberOfAbortedTransactions()
TxStatsMBean
getNumberOfAbortedTransactions
in interface TxStatsMBean
public long getNumberOfInflightTransactions()
TxStatsMBean
getNumberOfInflightTransactions
in interface TxStatsMBean
public long getNumberOfTimedOutTransactions()
TxStatsMBean
getNumberOfTimedOutTransactions
in interface TxStatsMBean
public long getNumberOfApplicationRollbacks()
TxStatsMBean
getNumberOfApplicationRollbacks
in interface TxStatsMBean
public long getNumberOfResourceRollbacks()
TxStatsMBean
getNumberOfResourceRollbacks
in interface TxStatsMBean
public void printStatus(PrintWriter pw)
pw
- the writer to use.Copyright © 2012. All Rights Reserved.