public class AggregateMetricsCollector extends Object implements MetricsCollector<RequestEvent>
MetricsCollector.
This collector only enabled when metrics aggregation config is enabled.| 构造器和说明 |
|---|
AggregateMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
calSamplesChanged() |
List<MetricSample> |
collect() |
void |
initMethodMetric(MetricsEvent event) |
void |
initMetrics(MetricsEvent event) |
void |
initQpsMetric(MethodMetric metric) |
void |
initRtAgrMetric(MethodMetric metric) |
void |
initRtMetric(MethodMetric metric) |
void |
initWindowCounter(MetricsEvent event,
MetricsKey targetKey) |
boolean |
isCollectEnabled() |
boolean |
isSupport(MetricsEvent event) |
void |
onEvent(RequestEvent event) |
void |
onEventError(RequestEvent event) |
void |
onEventFinish(RequestEvent event) |
void |
setCollectEnabled(Boolean collectEnabled) |
public AggregateMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
public void setCollectEnabled(Boolean collectEnabled)
public boolean isCollectEnabled()
isCollectEnabled 在接口中 MetricsCollector<RequestEvent>public boolean isSupport(MetricsEvent event)
isSupport 在接口中 MetricsListener<RequestEvent>public void onEvent(RequestEvent event)
onEvent 在接口中 MetricsListener<RequestEvent>public void onEventFinish(RequestEvent event)
onEventFinish 在接口中 MetricsLifeListener<RequestEvent>public void onEventError(RequestEvent event)
onEventError 在接口中 MetricsLifeListener<RequestEvent>public List<MetricSample> collect()
collect 在接口中 MetricsCollector<RequestEvent>public void initMetrics(MetricsEvent event)
initMetrics 在接口中 MetricsCollector<RequestEvent>public void initMethodMetric(MetricsEvent event)
public void initQpsMetric(MethodMetric metric)
public void initRtMetric(MethodMetric metric)
public void initRtAgrMetric(MethodMetric metric)
public void initWindowCounter(MetricsEvent event, MetricsKey targetKey)
public boolean calSamplesChanged()
calSamplesChanged 在接口中 MetricsCollector<RequestEvent>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.