|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.reservoir.monitoring.core.ProducerMeasurement
public class ProducerMeasurement
A class for measurements in producers.
Constructor Summary | |
---|---|
ProducerMeasurement(Probe aProbe,
java.util.List<ProbeValue> attrs)
Construct a Measurement, given the Probe who sends the Measurement and a list of ProbeValues. |
|
ProducerMeasurement(Probe aProbe,
java.util.List<ProbeValue> attrs,
java.lang.String theType)
Construct a Measurement, given the Probe who sends the Measurement and a list of ProbeValues, and a type for the Measurement. |
|
ProducerMeasurement(Probe aProbe,
java.util.Map<java.lang.Integer,java.lang.Object> attrs)
Construct a Measurement, given the Probe who sends the Measurement and a map of field number to field value. |
|
ProducerMeasurement(Probe aProbe,
java.util.Map<java.lang.Integer,java.lang.Object> attrs,
java.lang.String theType)
Construct a Measurement, given the Probe who sends the Measurement and a map of field number to field value, and a type for the Measurement. |
Method Summary | |
---|---|
Measurement |
addValues(java.util.List<ProbeValue> values)
Add attribute / values to the measurement. |
Timestamp |
getDeltaTime()
Get the delta since the last measurement. |
ID |
getGroupID()
Get the group ID for this Measurement |
Probe |
getProbe()
Get the probe this Measurement is from |
ID |
getProbeID()
Get the ID of the probe this Measurement is from |
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 |
void |
setGroupID(ID gid)
Set the groupID. |
void |
setSequenceNo(long n)
Set the sequence number of this measurement. |
void |
setServiceID(ID sid)
Set the service ID. |
void |
setType(java.lang.String t)
Set the measurement type |
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 |
---|
public ProducerMeasurement(Probe aProbe, java.util.List<ProbeValue> attrs)
public ProducerMeasurement(Probe aProbe, java.util.List<ProbeValue> attrs, java.lang.String theType)
public ProducerMeasurement(Probe aProbe, java.util.Map<java.lang.Integer,java.lang.Object> attrs) throws TypeException
TypeException
public ProducerMeasurement(Probe aProbe, java.util.Map<java.lang.Integer,java.lang.Object> attrs, java.lang.String theType) throws TypeException
TypeException
Method Detail |
---|
public Timestamp getTimestamp()
getTimestamp
in interface Measurement
public Timestamp getDeltaTime()
getDeltaTime
in interface Measurement
public Probe getProbe()
getProbe
in interface ProbeMeasurement
public ID getProbeID()
getProbeID
in interface Measurement
public ID getServiceID()
getServiceID
in interface Measurement
public void setServiceID(ID sid)
setServiceID
in interface ProbeMeasurement
public ID getGroupID()
getGroupID
in interface Measurement
public void setGroupID(ID gid)
setGroupID
in interface ProbeMeasurement
public java.lang.String getType()
getType
in interface Measurement
public void setType(java.lang.String t)
setType
in interface ProbeMeasurement
public long getSequenceNo()
getSequenceNo
in interface Measurement
public void setSequenceNo(long n)
setSequenceNo
in interface ProbeMeasurement
public java.util.List<ProbeValue> getValues()
getValues
in interface Measurement
public Measurement addValues(java.util.List<ProbeValue> values)
addValues
in interface ProbeMeasurement
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |