tyrex.tm

Interface DomainMetrics

public interface DomainMetrics

Holds metrics associated with a transaction domain.

This object records usage metrics for transaction, recording such information as the accumulated number of transactions committed and rolledback, the average duration of a transaction, etc.

Version: $Revision: 1.4 $

Author: Assaf Arkin

Method Summary
intgetActive()
Returns the current number of active transactions.
floatgetAvgDuration()
Returns the average duration for active transactions.
intgetTotalCommitted()
Returns the total number of committed transactions.
intgetTotalRolledback()
Returns the total number of rolled back transactions.
voidreset()
Called to reset this metrics object.

Method Detail

getActive

public int getActive()
Returns the current number of active transactions.

Returns: The current number of active transactions

getAvgDuration

public float getAvgDuration()
Returns the average duration for active transactions. Returns the average number of seconds transactions have been active, whether eventually committed or rolledback. Ignores any transactions that are currently in progress.

Returns: The average duration for active transactions

getTotalCommitted

public int getTotalCommitted()
Returns the total number of committed transactions.

Returns: The total number of committed transactions

getTotalRolledback

public int getTotalRolledback()
Returns the total number of rolled back transactions.

Returns: The total number of rolled back transactions

reset

public void reset()
Called to reset this metrics object.
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.