Package org.apache.solr.metrics
Class DelegateRegistryCounter
- java.lang.Object
-
- com.codahale.metrics.Counter
-
- org.apache.solr.metrics.DelegateRegistryCounter
-
- All Implemented Interfaces:
com.codahale.metrics.Counting
,com.codahale.metrics.Metric
public class DelegateRegistryCounter extends com.codahale.metrics.Counter
A counter 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 DelegateRegistryCounter(com.codahale.metrics.Counter primaryCounter, com.codahale.metrics.Counter delegateCounter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dec()
void
dec(long n)
long
getCount()
com.codahale.metrics.Counter
getDelegateCounter()
com.codahale.metrics.Counter
getPrimaryCounter()
void
inc()
void
inc(long n)
-
-
-
Method Detail
-
inc
public void inc()
- Overrides:
inc
in classcom.codahale.metrics.Counter
-
inc
public void inc(long n)
- Overrides:
inc
in classcom.codahale.metrics.Counter
-
dec
public void dec()
- Overrides:
dec
in classcom.codahale.metrics.Counter
-
dec
public void dec(long n)
- Overrides:
dec
in classcom.codahale.metrics.Counter
-
getCount
public long getCount()
- Specified by:
getCount
in interfacecom.codahale.metrics.Counting
- Overrides:
getCount
in classcom.codahale.metrics.Counter
-
getPrimaryCounter
public com.codahale.metrics.Counter getPrimaryCounter()
-
getDelegateCounter
public com.codahale.metrics.Counter getDelegateCounter()
-
-