Class LightweightMeasurementSet

  • All Implemented Interfaces:
    java.io.Serializable, MeasurementSet

    public class LightweightMeasurementSet
    extends java.lang.Object
    implements MeasurementSet
    Result of a CollectionJob. List of metricId/values pairs with minimal redundancy (timestamp, nodeId, service and interface are stored only once). The list of Measurement will be generated on the fly.
    Author:
    Christian Pape, Markus Neumann
    See Also:
    Serialized Form
    • Constructor Detail

      • LightweightMeasurementSet

        public LightweightMeasurementSet()
      • LightweightMeasurementSet

        public LightweightMeasurementSet​(int nodeId,
                                         java.lang.String service,
                                         java.lang.String theInterface,
                                         java.util.Date timestamp)
    • Method Detail

      • addMeasurement

        public void addMeasurement​(java.lang.String metricId,
                                   java.lang.String metricType,
                                   java.lang.String value,
                                   java.lang.String onmsLogicMetricId)
      • 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()
      • toString

        public java.lang.String toString()
        This toString method is for displaying reasons in the webapp NrtGrapher only. It's for prototyping only.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a String that contains the metrics and there values in a easy parsable way.