net.sf.sensor.meter
Class MeterRuntime

java.lang.Object
  extended bynet.sf.sensor.meter.MeterRuntime

public class MeterRuntime
extends Object

Main entry point for working with Meters.

Author:
Age Mooy

Constructor Summary
MeterRuntime()
           
 
Method Summary
 Meter getMeter(String label)
          Returns a new Meter for the specified label.
 Collection getMeterStatistics()
          Returns an unmodifiable Collection<MeterStatistics> of all registered meters.
 void reset()
          Resets all active counters to zero.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeterRuntime

public MeterRuntime()
Method Detail

getMeter

public Meter getMeter(String label)
Returns a new Meter for the specified label.

Parameters:
label - the label for the Meter.
Returns:
the Meter that matches the specified label.

getMeterStatistics

public Collection getMeterStatistics()
Returns an unmodifiable Collection<MeterStatistics> of all registered meters.

Returns:
an unmodifiable Collection<MeterStatistics> of all registered meters.

reset

public void reset()
Resets all active counters to zero. This method does not delete any counters.



Copyright © 2005-2006 SourceForge. All Rights Reserved.