eu.reservoir.monitoring.core
Class AbstractProbeAttribute

java.lang.Object
  extended by eu.reservoir.monitoring.core.AbstractProbeAttribute
All Implemented Interfaces:
ProbeAttribute
Direct Known Subclasses:
DefaultProbeAttribute, ListProbeAttribute, TableProbeAttribute

public abstract class AbstractProbeAttribute
extends java.lang.Object
implements ProbeAttribute

An abstract implementation of a ProbeAttribute.


Constructor Summary
AbstractProbeAttribute(int field, java.lang.String name, ProbeAttributeType type, java.lang.String units)
          Construct a ProbeAttribute.
 
Method Summary
 int getField()
          Get the field no for an attribute.
 java.lang.String getName()
          Get the name for an attribute.
 ProbeAttributeType getType()
          Get the type for an attribute.
 java.lang.String getUnits()
          Get the units for an attribute.
 java.lang.String toString()
          To String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractProbeAttribute

public AbstractProbeAttribute(int field,
                              java.lang.String name,
                              ProbeAttributeType type,
                              java.lang.String units)
Construct a ProbeAttribute.

Method Detail

getField

public int getField()
Get the field no for an attribute.

Specified by:
getField in interface ProbeAttribute

getName

public java.lang.String getName()
Get the name for an attribute. e.g. used-memory

Specified by:
getName in interface ProbeAttribute

getType

public ProbeAttributeType getType()
Get the type for an attribute. e.g. Integer

Specified by:
getType in interface ProbeAttribute

getUnits

public java.lang.String getUnits()
Get the units for an attribute. e.g. Mb, Gb, Kbps

Specified by:
getUnits in interface ProbeAttribute

toString

public java.lang.String toString()
To String.

Overrides:
toString in class java.lang.Object


RESERVOIR Monitoring 0.6.4