net.sf.sensor.gauge
Class AbstractGauge
java.lang.Object
net.sf.sensor.gauge.AbstractGauge
- All Implemented Interfaces:
- Gauge
- Direct Known Subclasses:
- FreeHeapMemoryGauge, TotalHeapMemoryGauge, UsedHeapMemoryGauge
- public abstract class AbstractGauge
- extends Object
- implements Gauge
Abstract helper implementation of the Gauge interface that
supplies two extra ways of associating a Gauge implementation
with a GaugeRuntime. This class offers a
constructor and a
set method that both take
- Author:
- Age Mooy
|
Constructor Summary |
AbstractGauge()
Default constructor that allows for construction of standard
Gauges that will get added to a GaugeRuntime through its add/set
methods. |
AbstractGauge(GaugeRuntime gaugeRuntime)
Constructor that self-registers the resulting Gauge instance
with the specified GaugeRuntime. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractGauge
public AbstractGauge()
- Default constructor that allows for construction of standard
Gauges that will get added to a GaugeRuntime through its add/set
methods.
AbstractGauge
public AbstractGauge(GaugeRuntime gaugeRuntime)
- Constructor that self-registers the resulting
Gauge instance
with the specified GaugeRuntime. No further reference to the
specified instance of GaugeRuntime is kept after construction.
- Parameters:
gaugeRuntime - the instance of GaugeRuntime this instance
should be registered with.
setGaugeRuntime
public void setGaugeRuntime(GaugeRuntime gaugeRuntime)
- Setter that self-registers this
Gaugeinstance with the specified
GaugeRuntime. No further reference to the specified instance
of GaugeRuntime is kept after this method returns.
- Parameters:
gaugeRuntime - the instance of GaugeRuntime this instance
should be registered with.
Copyright © 2005-2006 SourceForge. All Rights Reserved.