|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.arjuna.ats.arjuna.coordinator.TxStats
public class TxStats
This class is used to maintain statistics on transactions that have been created. This includes the number of transactions, their termination status (committed or rolled back), ...
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean enabled()
public static TxStats getInstance()
public long getNumberOfTransactions()
TxStatsMBean
getNumberOfTransactions in interface TxStatsMBeanpublic long getNumberOfNestedTransactions()
TxStatsMBean
getNumberOfNestedTransactions in interface TxStatsMBeanpublic long getNumberOfHeuristics()
TxStatsMBean
getNumberOfHeuristics in interface TxStatsMBeanpublic long getNumberOfCommittedTransactions()
TxStatsMBean
getNumberOfCommittedTransactions in interface TxStatsMBeanpublic long getNumberOfAbortedTransactions()
TxStatsMBean
getNumberOfAbortedTransactions in interface TxStatsMBeanpublic long getNumberOfInflightTransactions()
TxStatsMBean
getNumberOfInflightTransactions in interface TxStatsMBeanpublic long getNumberOfTimedOutTransactions()
TxStatsMBean
getNumberOfTimedOutTransactions in interface TxStatsMBeanpublic long getNumberOfApplicationRollbacks()
TxStatsMBean
getNumberOfApplicationRollbacks in interface TxStatsMBeanpublic long getNumberOfResourceRollbacks()
TxStatsMBean
getNumberOfResourceRollbacks in interface TxStatsMBeanpublic void printStatus(PrintWriter pw)
pw - the writer to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||