public class TxStats extends Object implements TxStatsMBean
Modifier and Type | Method and Description |
---|---|
static boolean |
enabled() |
long |
getAverageCommitTime()
Returns the average time, in nanoseconds, it is taking to commit a transaction.
|
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 |
getNumberOfSystemRollbacks()
Returns the number of transactions that have been rolled back due to internal system errors including
failure to create log storage and failure to write a transaction log.
|
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 getAverageCommitTime()
TxStatsMBean
getAverageCommitTime
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 getNumberOfSystemRollbacks()
TxStatsMBean
getNumberOfSystemRollbacks
in interface TxStatsMBean
public long getNumberOfResourceRollbacks()
TxStatsMBean
getNumberOfResourceRollbacks
in interface TxStatsMBean
public void printStatus(PrintWriter pw)
pw
- the writer to use.Copyright © 2021 JBoss by Red Hat. All rights reserved.