public class AggregateMetricsCollector extends Object implements MetricsCollector<RequestEvent>
MetricsCollector.
This collector only enabled when metrics aggregation config is enabled.| Constructor and Description |
|---|
AggregateMetricsCollector(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
| Modifier and Type | Method and Description |
|---|---|
List<MetricSample> |
collect() |
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 in interface MetricsCollector<RequestEvent>public boolean isSupport(MetricsEvent event)
isSupport in interface MetricsListener<RequestEvent>public void onEvent(RequestEvent event)
onEvent in interface MetricsListener<RequestEvent>public void onEventFinish(RequestEvent event)
onEventFinish in interface MetricsLifeListener<RequestEvent>public void onEventError(RequestEvent event)
onEventError in interface MetricsLifeListener<RequestEvent>public List<MetricSample> collect()
collect in interface MetricsCollector<RequestEvent>Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.