Package org.qubership.profiler.metrics
Class AbstractMetric
java.lang.Object
org.qubership.profiler.metrics.AbstractMetric
- All Implemented Interfaces:
org.qubership.profiler.agent.BaseMetric,org.qubership.profiler.agent.Metric
- Direct Known Subclasses:
AbstractHistogramMetric,CountMetric
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMetric(String callType, org.qubership.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion) AbstractMetric(String callType, org.qubership.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion, String suffix) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbuildKey(String callType, org.qubership.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit) protected StringbuildKey(String callType, org.qubership.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 org.qubership.profiler.agent.BaseMetric
printMethods inherited from interface org.qubership.profiler.agent.Metric
recordValue, resetValue
-
Field Details
-
key
-
outputVersion
protected int outputVersion
-
-
Constructor Details
-
AbstractMetric
public AbstractMetric(String callType, org.qubership.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion, String suffix) -
AbstractMetric
public AbstractMetric(String callType, org.qubership.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion)
-
-
Method Details
-
setKey
- Specified by:
setKeyin interfaceorg.qubership.profiler.agent.BaseMetric
-
getKey
- Specified by:
getKeyin interfaceorg.qubership.profiler.agent.BaseMetric
-
getOutputVersion
public int getOutputVersion()- Specified by:
getOutputVersionin interfaceorg.qubership.profiler.agent.Metric
-
setOutputVersion
public void setOutputVersion(int outputVersion) - Specified by:
setOutputVersionin interfaceorg.qubership.profiler.agent.Metric
-
getUpdatedTime
public long getUpdatedTime()- Specified by:
getUpdatedTimein interfaceorg.qubership.profiler.agent.Metric
-
resetUpdatedTime
public void resetUpdatedTime()- Specified by:
resetUpdatedTimein interfaceorg.qubership.profiler.agent.Metric
-
buildKey
protected String buildKey(String callType, org.qubership.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, String suffix) -
buildKey
protected String buildKey(String callType, org.qubership.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit) -
equals
-
hashCode
public int hashCode()
-