com.ibm.rational.test.lt.kernel.services
Interface IStatisticsManager


public interface IStatisticsManager

The IStatisticsManager interface provides access to statistical counters for users of ICustomCode2.

Statistical counters are stored in a hierarchy of counters. Periodically, all counter values in the tree are reported to the performance testing workbench and collected into performance test run results where they are available for use in reports and graphs. Each counter in the tree has a type. See StatType. The operations that are available on a counter depend on the counter's type.


Field Summary
static int ALL
          Reports all statistical counters.
static int NONE
          Reports no statistics.
static int PRIMARY_COUNTERS
          Reports a moderate number of statistical counters.
 
Method Summary
 int getLevel()
          Returns the current level of statistics verbosity.
 IStatTree getStatTree()
          Returns the root of the statistical counter tree.
 boolean wouldReport(int level)
          Determines if the current execution will report statistics at a given level.
 

Field Detail

NONE

public static final int NONE
Reports no statistics.

Used for internal testing purposes only.


PRIMARY_COUNTERS

public static final int PRIMARY_COUNTERS
Reports a moderate number of statistical counters.

(HTTP) Reports statistics related to pages but not to individual requests.

See Also:
ALL

ALL

public static final int ALL
Reports all statistical counters.

(HTTP) Reports statistics related to individual HTTP requests.

See Also:
PRIMARY_COUNTERS
Method Detail

getLevel

public int getLevel()
Returns the current level of statistics verbosity.

Returns:
The current level of statistics verbosity.

wouldReport

public boolean wouldReport(int level)
Determines if the current execution will report statistics at a given level.

Returns true if a statistics counter of the given statisticsLevel should be created. This method evaluates the statistics level and whether the calling virtual user is being sampled.

Parameters:
level - The level of the proposed counter.
Returns:
True if a statistics counter of the given level should be created.

getStatTree

public IStatTree getStatTree()
Returns the root of the statistical counter tree.

Returns:
The root of the counter tree.


Copyright (c) IBM Corp. and others 2005. All rights reserved