Class MetricsFilter

java.lang.Object
org.apache.dubbo.metrics.filter.MetricsFilter
All Implemented Interfaces:
org.apache.dubbo.rpc.model.ScopeModelAware
Direct Known Subclasses:
MetricsProviderFilter

public class MetricsFilter extends Object implements org.apache.dubbo.rpc.model.ScopeModelAware
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.dubbo.rpc.Result
    invoke(org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation)
     
    org.apache.dubbo.rpc.Result
    invoke(org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation, boolean isProvider)
     
    void
    onError(Throwable t, org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation)
     
    void
    onError(Throwable t, org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation, boolean isProvider)
     
    void
    onResponse(org.apache.dubbo.rpc.Result result, org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation)
     
    void
    onResponse(org.apache.dubbo.rpc.Result result, org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation, boolean isProvider)
     
    void
    setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.dubbo.rpc.model.ScopeModelAware

    setFrameworkModel, setModuleModel, setScopeModel
  • Constructor Details

    • MetricsFilter

      public MetricsFilter()
  • Method Details

    • setApplicationModel

      public void setApplicationModel(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
      Specified by:
      setApplicationModel in interface org.apache.dubbo.rpc.model.ScopeModelAware
    • invoke

      public org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation) throws org.apache.dubbo.rpc.RpcException
      Throws:
      org.apache.dubbo.rpc.RpcException
    • invoke

      public org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation, boolean isProvider) throws org.apache.dubbo.rpc.RpcException
      Throws:
      org.apache.dubbo.rpc.RpcException
    • onResponse

      public void onResponse(org.apache.dubbo.rpc.Result result, org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation)
    • onResponse

      public void onResponse(org.apache.dubbo.rpc.Result result, org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation, boolean isProvider)
    • onError

      public void onError(Throwable t, org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation)
    • onError

      public void onError(Throwable t, org.apache.dubbo.rpc.Invoker<?> invoker, org.apache.dubbo.rpc.Invocation invocation, boolean isProvider)