Class MetricsRegistry


  • public class MetricsRegistry
    extends Object
    Author:
    Daniel Meyer
    • Field Detail

      • isCollectingTelemetryMetrics

        protected boolean isCollectingTelemetryMetrics
    • Constructor Detail

      • MetricsRegistry

        public MetricsRegistry()
    • Method Detail

      • getDbMeterByName

        public Meter getDbMeterByName​(String name)
      • getTelemetryMeters

        public Map<String,​Meter> getTelemetryMeters()
      • isCollectingTelemetryMetrics

        public boolean isCollectingTelemetryMetrics()
      • setCollectingTelemetryMetrics

        public void setCollectingTelemetryMetrics​(boolean isCollectingTelemetryMetrics)
      • markOccurrence

        public void markOccurrence​(String name)
      • markOccurrence

        public void markOccurrence​(String name,
                                   long times)
      • markTelemetryOccurrence

        public void markTelemetryOccurrence​(String name,
                                            long times)
      • markOccurrence

        protected void markOccurrence​(Map<String,​Meter> meters,
                                      String name,
                                      long times)
      • createMeter

        public void createMeter​(String name)
        Creates a meter for both database and telemetry collection.
      • createDbMeter

        public void createDbMeter​(String name)
        Creates a meter only for database collection.