Class MetricService

    • Field Summary

      • Fields inherited from class org.apache.iotdb.metrics.AbstractMetricService

        compositeReporter, internalReporter, METRIC_CONFIG, metricManager, metricSets
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ServiceType getID()
      Get the name of the the service.
      static MetricService getInstance()  
      void reloadInternalReporter​(org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalReporter internalReporter)  
      void reloadService​(org.apache.iotdb.metrics.config.ReloadLevel reloadLevel)  
      void restartService()
      Restart metric service.
      void start()
      Start current service.
      void startInternalReporter()  
      void stop()
      Stop current service.
      void updateInternalReporter​(org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalReporter internalReporter)  
      • Methods inherited from class org.apache.iotdb.metrics.AbstractMetricService

        addMetricSet, count, countWithInternalReportAsync, createAutoGauge, createAutoGaugeWithInternalReport, gauge, gaugeWithInternalReportAsync, getAllMetricKeys, getAllMetrics, getAutoGauge, getMetricManager, getMetricsByType, getOrCreateCounter, getOrCreateCounterWithInternalReport, getOrCreateGauge, getOrCreateGaugeWithInternalReport, getOrCreateHistogram, getOrCreateHistogramWithInternalReport, getOrCreateRate, getOrCreateRateWithInternalReport, getOrCreateTimer, getOrCreateTimerWithInternalReport, histogram, histogramWithInternalReportAsync, loadReporter, rate, rateWithInternalReportAsync, remove, removeMetricSet, start, startAllReporter, startCoreModule, startService, stop, stopAllReporter, stopCoreModule, stopService, timer, timerWithInternalReportAsync
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • stop

        public void stop()
        Description copied from interface: IService
        Stop current service. If current service uses thread or thread pool, current service should guarantee to putBack thread or thread pool.
        Specified by:
        stop in interface IService
      • reloadInternalReporter

        public void reloadInternalReporter​(org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalReporter internalReporter)
        Specified by:
        reloadInternalReporter in class org.apache.iotdb.metrics.AbstractMetricService
      • reloadService

        public void reloadService​(org.apache.iotdb.metrics.config.ReloadLevel reloadLevel)
        Specified by:
        reloadService in class org.apache.iotdb.metrics.AbstractMetricService
      • getID

        public ServiceType getID()
        Description copied from interface: IService
        Get the name of the the service.
        Specified by:
        getID in interface IService
        Returns:
        current service name
      • updateInternalReporter

        public void updateInternalReporter​(org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalReporter internalReporter)
      • startInternalReporter

        public void startInternalReporter()