Class MetricService

  • All Implemented Interfaces:
    org.apache.iotdb.commons.service.IService, MetricServiceMBean

    public class MetricService
    extends org.apache.iotdb.metrics.AbstractMetricService
    implements MetricServiceMBean, org.apache.iotdb.commons.service.IService
    • Field Summary

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

        compositeReporter, isEnableMetric, metricManager, metricSets
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void enablePredefinedMetrics​(org.apache.iotdb.metrics.predefined.PredefinedMetric metric)  
      org.apache.iotdb.commons.service.ServiceType getID()  
      static MetricService getInstance()  
      void reloadProperties​(org.apache.iotdb.metrics.config.ReloadLevel reloadLevel)  
      void restartService()  
      void start()  
      void stop()  
      • Methods inherited from class org.apache.iotdb.metrics.AbstractMetricService

        count, gauge, getAllCounters, getAllGauges, getAllHistograms, getAllMetricKeys, getAllRates, getAllTimers, getMetricManager, getOrCreateAutoGauge, getOrCreateCounter, getOrCreateGauge, getOrCreateHistogram, getOrCreateRate, getOrCreateTimer, histogram, isEnable, loadReporter, rate, remove, start, startAllReporter, startService, stop, stopService, timer
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.iotdb.commons.service.IService

        shutdown, waitAndStop
    • Method Detail

      • start

        public void start()
                   throws org.apache.iotdb.commons.exception.StartupException
        Specified by:
        start in interface org.apache.iotdb.commons.service.IService
        Throws:
        org.apache.iotdb.commons.exception.StartupException
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.iotdb.commons.service.IService
      • restartService

        public void restartService()
                            throws org.apache.iotdb.commons.exception.StartupException
        Specified by:
        restartService in interface MetricServiceMBean
        Throws:
        org.apache.iotdb.commons.exception.StartupException
      • enablePredefinedMetrics

        public void enablePredefinedMetrics​(org.apache.iotdb.metrics.predefined.PredefinedMetric metric)
        Specified by:
        enablePredefinedMetrics in class org.apache.iotdb.metrics.AbstractMetricService
      • reloadProperties

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

        public org.apache.iotdb.commons.service.ServiceType getID()
        Specified by:
        getID in interface org.apache.iotdb.commons.service.IService