public class HistogramMetricImpl extends AbstractMetric implements ConfigurableHistogramMetric
| Constructor and Description |
|---|
HistogramMetricImpl(String name,
HistogramMetricImpl toCopy) |
HistogramMetricImpl(String name,
@Nullable String desc,
long[] bounds) |
| Modifier and Type | Method and Description |
|---|---|
long[] |
bounds() |
void |
bounds(long[] bounds)
Sets bounds for this histogram.
|
@Nullable String |
getAsString() |
void |
reset()
Resets metric state.
|
void |
reset(long[] bounds)
Resets histogram state with the specified bounds.
|
Class<long[]> |
type() |
long[] |
value() |
void |
value(long x)
Sets value.
|
description, equals, hashCode, nameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitdescription, namepublic HistogramMetricImpl(String name, @Nullable @Nullable String desc, long[] bounds)
name - Name.desc - Description.bounds - Bounds.public HistogramMetricImpl(String name, HistogramMetricImpl toCopy)
name - Name.toCopy - Histogram metric to copy.public void value(long x)
x - Value.public void reset(long[] bounds)
bounds - Bounds.public void bounds(long[] bounds)
bounds in interface ConfigurableHistogramMetricpublic long[] value()
value in interface ObjectMetric<long[]>@Nullable public @Nullable String getAsString()
getAsString in interface MetricgetAsString in interface ObjectMetric<long[]>public long[] bounds()
bounds in interface HistogramMetricpublic Class<long[]> type()
type in interface ObjectMetric<long[]>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023