|
||||||||||
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 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |