接口 AdvancedMetricExtension

所有超级接口:
MetricExtension

public interface AdvancedMetricExtension extends MetricExtension
Extended MetricExtension extending input parameters of each metric collection method with EntryType.
从以下版本开始:
1.8.0
作者:
bill_yip, Eric Zhao
  • 方法详细资料

    • onPass

      void onPass(ResourceWrapper rw, int batchCount, Object[] args)
      Add current pass count of the resource name.
      参数:
      rw - resource representation (including resource name, traffic type, etc.)
      batchCount - count to add
      args - additional arguments of the resource, eg. if the resource is a method name, the args will be the parameters of the method.
    • onBlocked

      void onBlocked(ResourceWrapper rw, int batchCount, String origin, BlockException e, Object[] args)
      Add current block count of the resource name.
      参数:
      rw - resource representation (including resource name, traffic type, etc.)
      batchCount - count to add
      origin - the origin of caller (if present)
      e - the associated BlockException
      args - additional arguments of the resource, eg. if the resource is a method name, the args will be the parameters of the method.
    • onComplete

      void onComplete(ResourceWrapper rw, long rt, int batchCount, Object[] args)
      Add current completed count of the resource name.
      参数:
      rw - resource representation (including resource name, traffic type, etc.)
      batchCount - count to add
      rt - response time of current invocation
      args - additional arguments of the resource
    • onError

      void onError(ResourceWrapper rw, Throwable throwable, int batchCount, Object[] args)
      Add current exception count of the resource name.
      参数:
      rw - resource representation (including resource name, traffic type, etc.)
      batchCount - count to add
      throwable - exception related.
      args - additional arguments of the resource