net.sf.sensor.gauge
Interface Gauge

All Known Implementing Classes:
AbstractGauge

public interface Gauge

Simple sensor that keeps track of the current value of a single long property.

If we could use generics, this class would be perfect for genericization so we could return a static type from the getValue() method.

Author:
Age Mooy

Method Summary
 String getLabel()
          Returns the label that identifies this instance.
 long getValue()
          The current value of this Gauge.
 

Method Detail

getLabel

public String getLabel()
Returns the label that identifies this instance. This method should normally return the full classname of the implementation class.

Returns:
the label that identifies this instance.

getValue

public long getValue()
The current value of this Gauge.

Returns:
the current value of this Gauge.


Copyright © 2005-2006 SourceForge. All Rights Reserved.