Class MethodStatComposite

java.lang.Object
org.apache.dubbo.metrics.report.AbstractMetricsExport
org.apache.dubbo.metrics.data.MethodStatComposite
All Implemented Interfaces:
MetricsExport

public class MethodStatComposite extends AbstractMetricsExport
Method-level data container, if there is no actual call to the existing call method, the key will not be displayed when exporting (to be optimized)
  • Constructor Details

    • MethodStatComposite

      public MethodStatComposite(ApplicationModel applicationModel)
  • Method Details

    • initWrapper

      public void initWrapper(List<MetricsKeyWrapper> metricsKeyWrappers)
    • initMethodKey

      public void initMethodKey(MetricsKeyWrapper wrapper, Invocation invocation)
    • incrementMethodKey

      public void incrementMethodKey(MetricsKeyWrapper wrapper, MethodMetric methodMetric, int size)
    • export

      public List<MetricSample> export(MetricsCategory category)
      Description copied from interface: MetricsExport
      export all.
    • calSamplesChanged

      public boolean calSamplesChanged()
      Description copied from interface: MetricsExport
      Check if samples have been changed. Note that this method will reset the changed flag to false using CAS.
      Returns:
      true if samples have been changed