@Activate(group="consumer",
onClass="org.apache.dubbo.metrics.collector.DefaultMetricsCollector")
public class MetricsClusterFilter
extends Object
implements ClusterFilter, BaseFilter.Listener, org.apache.dubbo.rpc.model.ScopeModelAware
BaseFilter.Listener| Constructor and Description |
|---|
MetricsClusterFilter() |
| Modifier and Type | Method and Description |
|---|---|
Result |
invoke(Invoker<?> invoker,
Invocation invocation) |
void |
onError(Throwable t,
Invoker<?> invoker,
Invocation invocation) |
void |
onResponse(Result result,
Invoker<?> invoker,
Invocation invocation) |
void |
setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetFrameworkModel, setModuleModel, setScopeModelpublic void setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
setApplicationModel in interface org.apache.dubbo.rpc.model.ScopeModelAwarepublic Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException
invoke in interface BaseFilterRpcExceptionpublic void onResponse(Result result, Invoker<?> invoker, Invocation invocation)
onResponse in interface BaseFilter.Listenerpublic void onError(Throwable t, Invoker<?> invoker, Invocation invocation)
onError in interface BaseFilter.ListenerCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.