public class PeriodicHistogramMetricImpl extends AbstractMetric implements ConfigurableHistogramMetric
| Modifier and Type | Field and Description |
|---|---|
static int |
DFLT_BUCKETS_CNT
Default buckets count.
|
static long |
DFLT_BUCKETS_INTERVAL
Default buckets interval in milliseconds.
|
| Constructor and Description |
|---|
PeriodicHistogramMetricImpl(long startTs,
String name,
@Nullable String desc) |
PeriodicHistogramMetricImpl(String name,
@Nullable String desc) |
| Modifier and Type | Method and Description |
|---|---|
long[] |
bounds() |
void |
bounds(long[] bounds)
Sets bounds for this histogram.
|
int |
bucketsCount()
Gets buckets count.
|
long |
bucketsInterval()
Gets buckets interval.
|
void |
decrement(long ts)
Decrement count of items in interval by timestamp.
|
IgniteBiTuple<long[],long[]> |
histogram()
Gets histogram.
|
void |
increment(long ts)
Increment count of items in interval by timestamp.
|
void |
reinit(long bucketsInterval,
int bucketsCnt) |
void |
reset(long itemsCnt) |
long |
startTs()
Gets start timestamp.
|
Class<long[]> |
type() |
long[] |
value() |
description, equals, hashCode, nameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetAsStringdescription, name, resetpublic static final long DFLT_BUCKETS_INTERVAL
public static final int DFLT_BUCKETS_CNT
public PeriodicHistogramMetricImpl(String name, @Nullable @Nullable String desc)
name - Metric name.desc - Metric description.public long[] bounds()
bounds in interface HistogramMetricpublic void bounds(long[] bounds)
bounds in interface ConfigurableHistogramMetricpublic long[] value()
value in interface ObjectMetric<long[]>public Class<long[]> type()
type in interface ObjectMetric<long[]>public void reinit(long bucketsInterval,
int bucketsCnt)
bucketsInterval - Buckets interval.bucketsCnt - Buckets count.public void reset(long itemsCnt)
itemsCnt - Total items count.public void increment(long ts)
public void decrement(long ts)
public IgniteBiTuple<long[],long[]> histogram()
public long bucketsInterval()
public int bucketsCount()
public long startTs()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023