Class ApplicationStatComposite

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

public class ApplicationStatComposite extends AbstractMetricsExport
Application-level data container, for the initialized MetricsKey, different from the null value of the Map type (the key is not displayed when there is no data), the key is displayed and the initial data is 0 value of the AtomicLong type
  • Constructor Details

    • ApplicationStatComposite

      public ApplicationStatComposite(ApplicationModel applicationModel)
  • Method Details

    • init

      public void init(List<MetricsKey> appKeys)
    • incrementSize

      public void incrementSize(MetricsKey metricsKey, int size)
    • setAppKey

      public void setAppKey(MetricsKey metricsKey, Long num)
    • export

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

      public Map<MetricsKey,AtomicLong> getApplicationNumStats()
    • 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