Class AbstractMonitor
java.lang.Object
org.apache.druid.java.util.metrics.AbstractMonitor
- All Implemented Interfaces:
Monitor
- Direct Known Subclasses:
ExecutorServiceMonitor,FeedDefiningMonitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleandoMonitor(ServiceEmitter emitter) booleanbooleanmonitor(ServiceEmitter emitter) Emit metrics using the given emitter.voidstart()voidstop()
-
Constructor Details
-
AbstractMonitor
public AbstractMonitor()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
isStarted
public boolean isStarted() -
monitor
Description copied from interface:MonitorEmit metrics using the given emitter. May be called from two separate threads: the scheduling thread and a lifecycle thread that is shutting down monitors. Therefore, this method must be thread-safe. -
doMonitor
-