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
 int getActive()
          Returns the current number of active transactions.
 float getAvgDuration()
          Returns the average duration for active transactions.
 int getTotalCommitted()
          Returns the total number of committed transactions.
 int getTotalRolledback()
          Returns the total number of rolled back transactions.
 void reset()
          Called to reset this metrics object.
 

Method Detail

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

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

getActive

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

Returns:
The current number of active 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.