public abstract class CombMetricsCollector<E extends TimeCounterEvent> extends AbstractMetricsListener<E> implements ApplicationMetricsCollector<E>, ServiceMetricsCollector<E>, MethodMetricsCollector<E>
| Constructor and Description |
|---|
CombMetricsCollector(BaseStatComposite stats) |
| Modifier and Type | Method and Description |
|---|---|
void |
addApplicationRt(String registryOpType,
Long responseTime) |
void |
addMethodRt(Invocation invocation,
String registryOpType,
Long responseTime) |
void |
addServiceRt(Invocation invocation,
String registryOpType,
Long responseTime) |
void |
addServiceRt(String serviceKey,
String registryOpType,
Long responseTime) |
MetricsEventMulticaster |
getEventMulticaster() |
void |
increment(MethodMetric methodMetric,
MetricsKeyWrapper wrapper,
int size) |
void |
increment(MetricsKey metricsKey) |
void |
increment(String serviceKey,
MetricsKeyWrapper metricsKeyWrapper,
int size) |
void |
init(Invocation invocation,
MetricsKeyWrapper wrapper) |
void |
onEvent(TimeCounterEvent event)
notify event.
|
void |
onEventError(TimeCounterEvent event) |
void |
onEventFinish(TimeCounterEvent event) |
void |
setNum(MetricsKeyWrapper metricsKey,
String serviceKey,
int num) |
isSupportequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalSamplesChanged, collect, initMetrics, isCollectEnabledisSupportpublic CombMetricsCollector(BaseStatComposite stats)
public void setNum(MetricsKeyWrapper metricsKey, String serviceKey, int num)
setNum in interface ServiceMetricsCollector<E extends TimeCounterEvent>public void increment(MetricsKey metricsKey)
increment in interface ApplicationMetricsCollector<E extends TimeCounterEvent>public void increment(String serviceKey, MetricsKeyWrapper metricsKeyWrapper, int size)
increment in interface ServiceMetricsCollector<E extends TimeCounterEvent>public void addApplicationRt(String registryOpType, Long responseTime)
addApplicationRt in interface ApplicationMetricsCollector<E extends TimeCounterEvent>public void addServiceRt(String serviceKey, String registryOpType, Long responseTime)
addServiceRt in interface ServiceMetricsCollector<E extends TimeCounterEvent>public void addServiceRt(Invocation invocation, String registryOpType, Long responseTime)
addServiceRt in interface ServiceMetricsCollector<E extends TimeCounterEvent>public void addMethodRt(Invocation invocation, String registryOpType, Long responseTime)
addMethodRt in interface MethodMetricsCollector<E extends TimeCounterEvent>public void increment(MethodMetric methodMetric, MetricsKeyWrapper wrapper, int size)
increment in interface MethodMetricsCollector<E extends TimeCounterEvent>public void init(Invocation invocation, MetricsKeyWrapper wrapper)
init in interface MethodMetricsCollector<E extends TimeCounterEvent>public MetricsEventMulticaster getEventMulticaster()
public void onEvent(TimeCounterEvent event)
MetricsListeneronEvent in interface MetricsListener<E extends TimeCounterEvent>onEvent in class AbstractMetricsListener<E extends TimeCounterEvent>event - BaseMetricsEventpublic void onEventFinish(TimeCounterEvent event)
onEventFinish in interface MetricsLifeListener<E extends TimeCounterEvent>public void onEventError(TimeCounterEvent event)
onEventError in interface MetricsLifeListener<E extends TimeCounterEvent>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.