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 ofMeasurement
will 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 void
addMeasurement(String metricId, String metricType, String value, String onmsLogicMetricId)
String
getJson()
List<Measurement>
getMeasurements()
String
getNetInterface()
int
getNodeId()
String
getService()
Date
getTimestamp()
void
setNetInterface(String theInterface)
void
setNodeId(int nodeId)
void
setService(String service)
void
setTimestamp(Date timestamp)
String
toString()
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:
getMeasurements
in 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:
getJson
in interfaceMeasurementSet
-
-