eu.reservoir.monitoring.core
Class ConsumerMeasurement

java.lang.Object
  extended by eu.reservoir.monitoring.core.ConsumerMeasurement
All Implemented Interfaces:
Measurement, java.io.Serializable
Direct Known Subclasses:
ConsumerMeasurementWithMetaData

public class ConsumerMeasurement
extends java.lang.Object
implements Measurement, java.io.Serializable

A class for measurements in consumers.

See Also:
Serialized Form

Constructor Summary
ConsumerMeasurement(long seqNo, ID pid, java.lang.String theType, long ts, long delta, ID serviceID, ID groupID, java.util.List<ProbeValue> attrs)
          Construct a ConsumerMeasurement.
ConsumerMeasurement(long seqNo, ID pid, java.lang.String theType, long ts, long delta, ID serviceID, ID groupID, java.util.Map<java.lang.Integer,java.lang.Object> attrs)
          Construct a Measurement Throws a TypeException if any of the objects passed in are not valid types for a Measurement.
 
Method Summary
 Timestamp getDeltaTime()
          Get the delta since the last measurement.
 ID getGroupID()
          Get the group ID for this Measurement
 ID getProbeID()
          Get the ID of the probe that created this measurement.
 long getSequenceNo()
          Get the sequence number of this measurement.
 ID getServiceID()
          Get the service ID of the probe this Measurement is from
 Timestamp getTimestamp()
          Get the timestamp
 java.lang.String getType()
          Get the measurement type
 java.util.List<ProbeValue> getValues()
          Get the attribute / values
 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

ConsumerMeasurement

public ConsumerMeasurement(long seqNo,
                           ID pid,
                           java.lang.String theType,
                           long ts,
                           long delta,
                           ID serviceID,
                           ID groupID,
                           java.util.List<ProbeValue> attrs)
Construct a ConsumerMeasurement.


ConsumerMeasurement

public ConsumerMeasurement(long seqNo,
                           ID pid,
                           java.lang.String theType,
                           long ts,
                           long delta,
                           ID serviceID,
                           ID groupID,
                           java.util.Map<java.lang.Integer,java.lang.Object> attrs)
                    throws TypeException
Construct a Measurement Throws a TypeException if any of the objects passed in are not valid types for a Measurement.

Throws:
TypeException
Method Detail

getProbeID

public ID getProbeID()
Get the ID of the probe that created this measurement.

Specified by:
getProbeID in interface Measurement

getServiceID

public ID getServiceID()
Get the service ID of the probe this Measurement is from

Specified by:
getServiceID in interface Measurement

getGroupID

public ID getGroupID()
Get the group ID for this Measurement

Specified by:
getGroupID in interface Measurement

getTimestamp

public Timestamp getTimestamp()
Get the timestamp

Specified by:
getTimestamp in interface Measurement

getDeltaTime

public Timestamp getDeltaTime()
Get the delta since the last measurement.

Specified by:
getDeltaTime in interface Measurement

getType

public java.lang.String getType()
Get the measurement type

Specified by:
getType in interface Measurement

getSequenceNo

public long getSequenceNo()
Get the sequence number of this measurement.

Specified by:
getSequenceNo in interface Measurement

getValues

public java.util.List<ProbeValue> getValues()
Get the attribute / values

Specified by:
getValues in interface Measurement

toString

public java.lang.String toString()
To String

Overrides:
toString in class java.lang.Object


RESERVOIR Monitoring 0.6.4