Class AbstractMetric

java.lang.Object
com.netcracker.profiler.metrics.AbstractMetric
All Implemented Interfaces:
com.netcracker.profiler.agent.BaseMetric, com.netcracker.profiler.agent.Metric
Direct Known Subclasses:
AbstractHistogramMetric, CountMetric

public abstract class AbstractMetric extends Object implements com.netcracker.profiler.agent.Metric
  • Field Details

    • key

      protected String key
    • outputVersion

      protected int outputVersion
  • Constructor Details

  • Method Details

    • setKey

      public void setKey(String key)
      Specified by:
      setKey in interface com.netcracker.profiler.agent.BaseMetric
    • getKey

      public String getKey()
      Specified by:
      getKey in interface com.netcracker.profiler.agent.BaseMetric
    • getOutputVersion

      public int getOutputVersion()
      Specified by:
      getOutputVersion in interface com.netcracker.profiler.agent.Metric
    • setOutputVersion

      public void setOutputVersion(int outputVersion)
      Specified by:
      setOutputVersion in interface com.netcracker.profiler.agent.Metric
    • getUpdatedTime

      public long getUpdatedTime()
      Specified by:
      getUpdatedTime in interface com.netcracker.profiler.agent.Metric
    • resetUpdatedTime

      public void resetUpdatedTime()
      Specified by:
      resetUpdatedTime in interface com.netcracker.profiler.agent.Metric
    • buildKey

      protected String buildKey(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, String suffix)
    • buildKey

      protected String buildKey(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object