Package org.apache.solr.metrics
Class DelegateRegistryMeter
- java.lang.Object
-
- com.codahale.metrics.Meter
-
- org.apache.solr.metrics.DelegateRegistryMeter
-
- All Implemented Interfaces:
com.codahale.metrics.Counting
,com.codahale.metrics.Metered
,com.codahale.metrics.Metric
public class DelegateRegistryMeter extends com.codahale.metrics.Meter
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 DelegateRegistryMeter(com.codahale.metrics.Meter primaryMeter, com.codahale.metrics.Meter delegateMeter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCount()
com.codahale.metrics.Meter
getDelegateMeter()
double
getFifteenMinuteRate()
double
getFiveMinuteRate()
double
getMeanRate()
double
getOneMinuteRate()
com.codahale.metrics.Meter
getPrimaryMeter()
void
mark()
void
mark(long n)
-
-
-
Method Detail
-
mark
public void mark()
- Overrides:
mark
in classcom.codahale.metrics.Meter
-
mark
public void mark(long n)
- Overrides:
mark
in classcom.codahale.metrics.Meter
-
getCount
public long getCount()
- Specified by:
getCount
in interfacecom.codahale.metrics.Counting
- Specified by:
getCount
in interfacecom.codahale.metrics.Metered
- Overrides:
getCount
in classcom.codahale.metrics.Meter
-
getFifteenMinuteRate
public double getFifteenMinuteRate()
- Specified by:
getFifteenMinuteRate
in interfacecom.codahale.metrics.Metered
- Overrides:
getFifteenMinuteRate
in classcom.codahale.metrics.Meter
-
getFiveMinuteRate
public double getFiveMinuteRate()
- Specified by:
getFiveMinuteRate
in interfacecom.codahale.metrics.Metered
- Overrides:
getFiveMinuteRate
in classcom.codahale.metrics.Meter
-
getMeanRate
public double getMeanRate()
- Specified by:
getMeanRate
in interfacecom.codahale.metrics.Metered
- Overrides:
getMeanRate
in classcom.codahale.metrics.Meter
-
getOneMinuteRate
public double getOneMinuteRate()
- Specified by:
getOneMinuteRate
in interfacecom.codahale.metrics.Metered
- Overrides:
getOneMinuteRate
in classcom.codahale.metrics.Meter
-
getPrimaryMeter
public com.codahale.metrics.Meter getPrimaryMeter()
-
getDelegateMeter
public com.codahale.metrics.Meter getDelegateMeter()
-
-