org.datanucleus.management.runtime
Class TransactionRuntime

java.lang.Object
  extended by org.datanucleus.management.runtime.TransactionRuntime
All Implemented Interfaces:
TransactionRuntimeMBean

public class TransactionRuntime
extends java.lang.Object
implements TransactionRuntimeMBean

Transaction System Statistics. Statistics for all transactions


Constructor Summary
TransactionRuntime()
           
 
Method Summary
 long getTransactionActiveTotalCount()
          Total number of active transactions
 long getTransactionCommittedTotalCount()
          Total number of committed transactions
 long getTransactionExecutionTimeAverage()
          Simple Moving Average execution time of transactions
 long getTransactionExecutionTimeHigh()
          Highest execution time
 long getTransactionExecutionTimeLow()
          Lowest execution time
 long getTransactionExecutionTotalTime()
          execution total time
 long getTransactionRolledBackTotalCount()
          Total number of rolled back transactions
 long getTransactionTotalCount()
          Total number of transactions
 void transactionCommitted(long executionTime)
           
 void transactionRolledBack(long executionTime)
           
 void transactionStarted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionRuntime

public TransactionRuntime()
Method Detail

getTransactionExecutionTimeAverage

public long getTransactionExecutionTimeAverage()
Simple Moving Average execution time of transactions

Specified by:
getTransactionExecutionTimeAverage in interface TransactionRuntimeMBean
Returns:
Average execution time of transactions in milleseconds

getTransactionExecutionTimeLow

public long getTransactionExecutionTimeLow()
Lowest execution time

Specified by:
getTransactionExecutionTimeLow in interface TransactionRuntimeMBean
Returns:
Lowest execution time in milleseconds

getTransactionExecutionTimeHigh

public long getTransactionExecutionTimeHigh()
Highest execution time

Specified by:
getTransactionExecutionTimeHigh in interface TransactionRuntimeMBean
Returns:
Highest execution time in milleseconds

getTransactionExecutionTotalTime

public long getTransactionExecutionTotalTime()
execution total time

Specified by:
getTransactionExecutionTotalTime in interface TransactionRuntimeMBean
Returns:
execution total time in milleseconds

getTransactionTotalCount

public long getTransactionTotalCount()
Description copied from interface: TransactionRuntimeMBean
Total number of transactions

Specified by:
getTransactionTotalCount in interface TransactionRuntimeMBean
Returns:
Total number of transactions

getTransactionActiveTotalCount

public long getTransactionActiveTotalCount()
Description copied from interface: TransactionRuntimeMBean
Total number of active transactions

Specified by:
getTransactionActiveTotalCount in interface TransactionRuntimeMBean
Returns:
Total number of active transactions

getTransactionCommittedTotalCount

public long getTransactionCommittedTotalCount()
Description copied from interface: TransactionRuntimeMBean
Total number of committed transactions

Specified by:
getTransactionCommittedTotalCount in interface TransactionRuntimeMBean
Returns:
Total number of committed transactions

getTransactionRolledBackTotalCount

public long getTransactionRolledBackTotalCount()
Description copied from interface: TransactionRuntimeMBean
Total number of rolled back transactions

Specified by:
getTransactionRolledBackTotalCount in interface TransactionRuntimeMBean
Returns:
Total number of rolled back transactions

transactionCommitted

public void transactionCommitted(long executionTime)

transactionRolledBack

public void transactionRolledBack(long executionTime)

transactionStarted

public void transactionStarted()


Copyright © 2010. All Rights Reserved.