Package org.apache.solr.metrics
Class DelegateRegistryHistogram
- java.lang.Object
-
- com.codahale.metrics.Histogram
-
- org.apache.solr.metrics.DelegateRegistryHistogram
-
- All Implemented Interfaces:
com.codahale.metrics.Counting
,com.codahale.metrics.Metric
,com.codahale.metrics.Sampling
public class DelegateRegistryHistogram extends com.codahale.metrics.Histogram
A meter implementation that is aware of both primary and delegate metrics belonging to different registries and able to update metrics in multiple registries- See Also:
SolrDelegateRegistryMetricsContext
-
-
Constructor Summary
Constructors Constructor Description DelegateRegistryHistogram(com.codahale.metrics.Histogram primaryHistogram, com.codahale.metrics.Histogram delegateHistogram)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
com.codahale.metrics.Histogram
getDelegateHistogram()
com.codahale.metrics.Histogram
getPrimaryHistogram()
com.codahale.metrics.Snapshot
getSnapshot()
void
update(int value)
void
update(long value)
-
-
-
Method Detail
-
update
public void update(int value)
- Overrides:
update
in classcom.codahale.metrics.Histogram
-
update
public void update(long value)
- Overrides:
update
in classcom.codahale.metrics.Histogram
-
getCount
public long getCount()
- Specified by:
getCount
in interfacecom.codahale.metrics.Counting
- Overrides:
getCount
in classcom.codahale.metrics.Histogram
-
getSnapshot
public com.codahale.metrics.Snapshot getSnapshot()
- Specified by:
getSnapshot
in interfacecom.codahale.metrics.Sampling
- Overrides:
getSnapshot
in classcom.codahale.metrics.Histogram
-
getPrimaryHistogram
public com.codahale.metrics.Histogram getPrimaryHistogram()
-
getDelegateHistogram
public com.codahale.metrics.Histogram getDelegateHistogram()
-
-