Class MetricsRegistry


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

      • dbMeters

        protected java.util.Map<java.lang.String,​Meter> dbMeters
      • telemetryMeters

        protected java.util.Map<java.lang.String,​Meter> telemetryMeters
      • isCollectingTelemetryMetrics

        protected boolean isCollectingTelemetryMetrics
    • Constructor Detail

      • MetricsRegistry

        public MetricsRegistry()
    • Method Detail

      • getDbMeterByName

        public Meter getDbMeterByName​(java.lang.String name)
      • getDbMeters

        public java.util.Map<java.lang.String,​Meter> getDbMeters()
      • getTelemetryMeters

        public java.util.Map<java.lang.String,​Meter> getTelemetryMeters()
      • isCollectingTelemetryMetrics

        public boolean isCollectingTelemetryMetrics()
      • setCollectingTelemetryMetrics

        public void setCollectingTelemetryMetrics​(boolean isCollectingTelemetryMetrics)
      • markOccurrence

        public void markOccurrence​(java.lang.String name)
      • markOccurrence

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

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

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

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

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