All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.andthehorseyourodeinon.utils.Metrics

java.lang.Object
   |
   +----com.andthehorseyourodeinon.utils.Metrics

public class Metrics
extends Object
The Metrics class allows you to have a collection of named RunMetrics, accessible via a single object. It will also generate a global report on the states of all RunMetrics.

Version:
$Id: Metrics.java,v 1.1 2000/05/16 22:45:10 samuelg Exp $
See Also:
RunMetrics

Constructor Index

 o Metrics()

Method Index

 o addMetric(String)
Add a RunMetric to the collection
 o showAllMetrics()
generate an HTML table of all RunMetric's reports.
 o showMetrics(String)
Get an HTML-formatted report from a named RunMetric
 o start(String)
Starts a named RunMetric's timing cycle
 o stop(String)
Stops a named RunMetric's timing cycle
 o systemMetrics()
Generate an HTML table describing global system metrics

Constructors

 o Metrics
 public Metrics()

Methods

 o addMetric
 public void addMetric(String metricName)
Add a RunMetric to the collection

 o start
 public synchronized void start(String metricName)
Starts a named RunMetric's timing cycle

 o stop
 public synchronized void stop(String metricName)
Stops a named RunMetric's timing cycle

 o showAllMetrics
 public String showAllMetrics()
generate an HTML table of all RunMetric's reports.

 o showMetrics
 public String showMetrics(String metricName)
Get an HTML-formatted report from a named RunMetric

 o systemMetrics
 public String systemMetrics()
Generate an HTML table describing global system metrics


All Packages  Class Hierarchy  This Package  Previous  Next  Index