com.arjuna.ats.arjuna.coordinator
Class TxStats

java.lang.Object
  extended by com.arjuna.ats.arjuna.coordinator.TxStats

public class TxStats
extends java.lang.Object

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), ...

Since:
JTS 2.1.
Version:
$Id: TxStats.java 2342 2006-03-30 13:06:17Z $
Author:
Mark Little (mark@arjuna.com)

Constructor Summary
TxStats()
           
 
Method Summary
static int numberOfAbortedTransactions()
           
static int numberOfApplicationRollbacks()
           
static int numberOfCommittedTransactions()
           
static int numberOfHeuristics()
           
static int numberOfInflightTransactions()
           
static int numberOfNestedTransactions()
           
static int numberOfResourceRollbacks()
           
static int numberOfTimedOutTransactions()
           
static int numberOfTransactions()
           
static void printStatus(java.io.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
 

Constructor Detail

TxStats

public TxStats()
Method Detail

numberOfTransactions

public static int numberOfTransactions()
Returns:
the number of transactions (top-level and nested) created so far.

numberOfNestedTransactions

public static int numberOfNestedTransactions()
Returns:
the number of nested (sub) transactions created so far.

numberOfHeuristics

public static int numberOfHeuristics()
Returns:
the number of transactions which have terminated with heuristic outcomes.

numberOfCommittedTransactions

public static int numberOfCommittedTransactions()
Returns:
the number of committed transactions.

numberOfAbortedTransactions

public static int numberOfAbortedTransactions()
Returns:
the total number of transactions which have rolled back.

numberOfInflightTransactions

public static int numberOfInflightTransactions()
Returns:
total number of inflight (active) transactions.

numberOfTimedOutTransactions

public static int numberOfTimedOutTransactions()
Returns:
the number of transactions that have rolled back due to timeout.

numberOfApplicationRollbacks

public static int numberOfApplicationRollbacks()
Returns:
the number of transactions that been rolled back by the application.

numberOfResourceRollbacks

public static int numberOfResourceRollbacks()
Returns:
the number of transactions that have been rolled back by participants.

printStatus

public static void printStatus(java.io.PrintWriter pw)
Print all of the current statistics information.

Parameters:
pw - the writer to use.