Package com.netcracker.profiler.metrics
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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMetric(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion) AbstractMetric(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion, String suffix) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildKey(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit) protected StringbuildKey(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, String suffix) booleangetKey()intlonginthashCode()voidvoidvoidsetOutputVersion(int outputVersion) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netcracker.profiler.agent.BaseMetric
printMethods inherited from interface com.netcracker.profiler.agent.Metric
recordValue, resetValue
-
Field Details
-
key
-
outputVersion
protected int outputVersion
-
-
Constructor Details
-
AbstractMetric
public AbstractMetric(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion, String suffix) -
AbstractMetric
public AbstractMetric(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion)
-
-
Method Details
-
setKey
- Specified by:
setKeyin interfacecom.netcracker.profiler.agent.BaseMetric
-
getKey
- Specified by:
getKeyin interfacecom.netcracker.profiler.agent.BaseMetric
-
getOutputVersion
public int getOutputVersion()- Specified by:
getOutputVersionin interfacecom.netcracker.profiler.agent.Metric
-
setOutputVersion
public void setOutputVersion(int outputVersion) - Specified by:
setOutputVersionin interfacecom.netcracker.profiler.agent.Metric
-
getUpdatedTime
public long getUpdatedTime()- Specified by:
getUpdatedTimein interfacecom.netcracker.profiler.agent.Metric
-
resetUpdatedTime
public void resetUpdatedTime()- Specified by:
resetUpdatedTimein interfacecom.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
-
hashCode
public int hashCode()
-