eu.reservoir.monitoring.core
Class DefaultProbeValue

java.lang.Object
  extended by eu.reservoir.monitoring.core.DefaultProbeValue
All Implemented Interfaces:
ProbeValue, java.io.Serializable
Direct Known Subclasses:
ProbeValueWithName

public class DefaultProbeValue
extends java.lang.Object
implements ProbeValue, java.io.Serializable

A default implementation of a ProbeValue.

See Also:
Serialized Form

Constructor Summary
DefaultProbeValue(int field, java.lang.Object value)
          Construct a ProbeValue
 
Method Summary
 int getField()
          Get the field no for an attribute.
 ProbeAttributeType getType()
          Get the type for a ProbeValue.
 java.lang.Object getValue()
          Get the value 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

DefaultProbeValue

public DefaultProbeValue(int field,
                         java.lang.Object value)
                  throws TypeException
Construct a ProbeValue

Throws:
TypeException
Method Detail

getField

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

Specified by:
getField in interface ProbeValue

getValue

public java.lang.Object getValue()
Get the value for an attribute.

Specified by:
getValue in interface ProbeValue

getType

public ProbeAttributeType getType()
Get the type for a ProbeValue. e.g. INTEGER

Specified by:
getType in interface ProbeValue

toString

public java.lang.String toString()
To string

Overrides:
toString in class java.lang.Object


RESERVOIR Monitoring 0.6.4