Package org.opennms.nrtg.api.model
Class LightweightMeasurementSet
- java.lang.Object
-
- org.opennms.nrtg.api.model.LightweightMeasurementSet
-
- All Implemented Interfaces:
java.io.Serializable,MeasurementSet
public class LightweightMeasurementSet extends java.lang.Object implements MeasurementSet
Result of aCollectionJob. List of metricId/values pairs with minimal redundancy (timestamp, nodeId, service and interface are stored only once). The list ofMeasurementwill be generated on the fly.- Author:
- Christian Pape, Markus Neumann
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LightweightMeasurementSet()LightweightMeasurementSet(int nodeId, java.lang.String service, java.lang.String theInterface, java.util.Date timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMeasurement(java.lang.String metricId, java.lang.String metricType, java.lang.String value, java.lang.String onmsLogicMetricId)java.lang.StringgetJson()java.util.List<Measurement>getMeasurements()java.lang.StringgetNetInterface()intgetNodeId()java.lang.StringgetService()java.util.DategetTimestamp()voidsetNetInterface(java.lang.String theInterface)voidsetNodeId(int nodeId)voidsetService(java.lang.String service)voidsetTimestamp(java.util.Date timestamp)java.lang.StringtoString()This toString method is for displaying reasons in the webapp NrtGrapher only.
-
-
-
Method Detail
-
addMeasurement
public void addMeasurement(java.lang.String metricId, java.lang.String metricType, java.lang.String value, java.lang.String onmsLogicMetricId)
-
getMeasurements
public java.util.List<Measurement> getMeasurements()
- Specified by:
getMeasurementsin interfaceMeasurementSet
-
setNodeId
public void setNodeId(int nodeId)
-
setNetInterface
public void setNetInterface(java.lang.String theInterface)
-
setService
public void setService(java.lang.String service)
-
setTimestamp
public void setTimestamp(java.util.Date timestamp)
-
getNodeId
public int getNodeId()
-
getNetInterface
public java.lang.String getNetInterface()
-
getService
public java.lang.String getService()
-
getTimestamp
public java.util.Date getTimestamp()
-
getJson
public java.lang.String getJson()
- Specified by:
getJsonin interfaceMeasurementSet
-
toString
public java.lang.String toString()
This toString method is for displaying reasons in the webapp NrtGrapher only. It's for prototyping only.- Overrides:
toStringin classjava.lang.Object- Returns:
- a
Stringthat contains the metrics and there values in a easy parsable way.
-
-