Package org.opennms.nrtg.api.model
Class LightweightMeasurementSet
- java.lang.Object
-
- org.opennms.nrtg.api.model.LightweightMeasurementSet
-
- All Implemented Interfaces:
Serializable,MeasurementSet
public class LightweightMeasurementSet extends 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, String service, String theInterface, Date timestamp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMeasurement(String metricId, String metricType, String value, String onmsLogicMetricId)StringgetJson()List<Measurement>getMeasurements()StringgetNetInterface()intgetNodeId()StringgetService()DategetTimestamp()voidsetNetInterface(String theInterface)voidsetNodeId(int nodeId)voidsetService(String service)voidsetTimestamp(Date timestamp)StringtoString()This toString method is for displaying reasons in the webapp NrtGrapher only.
-
-
-
Method Detail
-
addMeasurement
public void addMeasurement(String metricId, String metricType, String value, String onmsLogicMetricId)
-
getMeasurements
public List<Measurement> getMeasurements()
- Specified by:
getMeasurementsin interfaceMeasurementSet
-
setNodeId
public void setNodeId(int nodeId)
-
setNetInterface
public void setNetInterface(String theInterface)
-
setService
public void setService(String service)
-
setTimestamp
public void setTimestamp(Date timestamp)
-
getNodeId
public int getNodeId()
-
getNetInterface
public String getNetInterface()
-
getService
public String getService()
-
getTimestamp
public Date getTimestamp()
-
getJson
public String getJson()
- Specified by:
getJsonin interfaceMeasurementSet
-
-