Package com.netcracker.profiler.metrics
Class AbstractHistogramMetric
java.lang.Object
com.netcracker.profiler.metrics.AbstractMetric
com.netcracker.profiler.metrics.AbstractHistogramMetric
- All Implemented Interfaces:
com.netcracker.profiler.agent.BaseMetric,com.netcracker.profiler.agent.Metric
- Direct Known Subclasses:
CPUMetric,DiskIOMetric,DurationMetric,MemoryMetric,NetworkIOMetric,QueueWaitTimeMetric,TransactionMetric
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected longprotected org.HdrHistogram.SynchronizedHistogramprotected com.netcracker.profiler.agent.HistogramIterationTypeprotected doubleprotected longprotected intprotected intprotected AtomicLongstatic final Stringprotected longprotected longFields inherited from class com.netcracker.profiler.metrics.AbstractMetric
key, outputVersion -
Constructor Summary
ConstructorsConstructorDescriptionAbstractHistogramMetric(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion, String suffix) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidparseHistogramParameters(Map<String, String> metricParameters) voidprint(StringBuilder out) protected voidrecordValue(long value) voidMethods inherited from class com.netcracker.profiler.metrics.AbstractMetric
buildKey, buildKey, equals, getKey, getOutputVersion, getUpdatedTime, hashCode, resetUpdatedTime, setKey, setOutputVersionMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.netcracker.profiler.agent.Metric
recordValue
-
Field Details
-
BUCKET_SUFFIX
- See Also:
-
SUM_SUFFIX
- See Also:
-
COUNT_SUFFIX
- See Also:
-
histogram
protected org.HdrHistogram.SynchronizedHistogram histogram -
sum
-
lowestDiscernibleValue
protected long lowestDiscernibleValue -
highestTrackableValue
protected long highestTrackableValue -
numberOfSignificantValueDigits
protected int numberOfSignificantValueDigits -
histogramIterationType
protected com.netcracker.profiler.agent.HistogramIterationType histogramIterationType -
percentileTicksPerHalfDistance
protected int percentileTicksPerHalfDistance -
valueUnitsInFirstBucket
protected long valueUnitsInFirstBucket -
logBase
protected double logBase -
valueUnitsPerBucket
protected long valueUnitsPerBucket
-
-
Constructor Details
-
AbstractHistogramMetric
public AbstractHistogramMetric(String callType, com.netcracker.profiler.agent.MetricType type, HashSet<AggregationParameter> aggregationParameters, MetricUnit metricUnit, int outputVersion, String suffix)
-
-
Method Details
-
resetValue
public void resetValue() -
initHistogram
protected void initHistogram() -
parseHistogramParameters
-
recordValue
protected void recordValue(long value) -
print
-