Class MetricService
- java.lang.Object
-
- org.apache.iotdb.metrics.AbstractMetricService
-
- org.apache.iotdb.commons.service.metric.MetricService
-
- All Implemented Interfaces:
IService,MetricServiceMBean
public class MetricService extends org.apache.iotdb.metrics.AbstractMetricService implements MetricServiceMBean, IService
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceTypegetID()Get the name of the the service.static MetricServicegetInstance()voidreloadInternalReporter(org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalReporter internalReporter)voidreloadService(org.apache.iotdb.metrics.config.ReloadLevel reloadLevel)voidrestartService()Restart metric service.voidstart()Start current service.voidstartInternalReporter()voidstop()Stop current service.voidupdateInternalReporter(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
-
Methods inherited from interface org.apache.iotdb.commons.service.IService
shutdown, waitAndStop
-
Methods inherited from interface org.apache.iotdb.commons.service.metric.MetricServiceMBean
startService, stopService
-
-
-
-
Method Detail
-
start
public void start() throws StartupExceptionDescription copied from interface:IServiceStart current service.- Specified by:
startin interfaceIService- Throws:
StartupException
-
restartService
public void restartService()
Restart metric service.- Specified by:
restartServicein interfaceMetricServiceMBean
-
stop
public void stop()
Description copied from interface:IServiceStop current service. If current service uses thread or thread pool, current service should guarantee to putBack thread or thread pool.
-
reloadInternalReporter
public void reloadInternalReporter(org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalReporter internalReporter)
- Specified by:
reloadInternalReporterin classorg.apache.iotdb.metrics.AbstractMetricService
-
reloadService
public void reloadService(org.apache.iotdb.metrics.config.ReloadLevel reloadLevel)
- Specified by:
reloadServicein classorg.apache.iotdb.metrics.AbstractMetricService
-
getID
public ServiceType getID()
Description copied from interface:IServiceGet the name of the the service.
-
updateInternalReporter
public void updateInternalReporter(org.apache.iotdb.metrics.reporter.iotdb.IoTDBInternalReporter internalReporter)
-
startInternalReporter
public void startInternalReporter()
-
getInstance
public static MetricService getInstance()
-
-