Class Metric

  • All Implemented Interfaces:
    Comparable<Metric>

    public class Metric
    extends Object
    implements Comparable<Metric>
    Class containing metric values and all identifying fields to be stored in a MetricStore.
    • Method Detail

      • equals

        public boolean equals​(Object other)
        Check if a Metric matches another object.
        Overrides:
        equals in class Object
      • getAggLevel

        public AggLevel getAggLevel()
      • addValue

        public void addValue​(double value)
        Adds an additional value to the metric.
      • getSum

        public double getSum()
      • setSum

        public void setSum​(double sum)
      • getCount

        public long getCount()
      • setCount

        public void setCount​(long count)
      • getMin

        public double getMin()
      • setMin

        public void setMin​(double min)
      • getMax

        public double getMax()
      • setMax

        public void setMax​(double max)
      • getTopologyId

        public String getTopologyId()
      • setTopologyId

        public void setTopologyId​(String topologyId)
      • getTimestamp

        public long getTimestamp()
      • setTimestamp

        public void setTimestamp​(long timestamp)
      • getValue

        public double getValue()
      • setValue

        public void setValue​(double value)
        Initialize the metric value.
      • getMetricName

        public String getMetricName()
      • getComponentId

        public String getComponentId()
      • getExecutorId

        public String getExecutorId()
      • getHostname

        public String getHostname()
      • getStreamId

        public String getStreamId()
      • getPort

        public Integer getPort()