ModuleRegistry

class ModuleRegistry(configuration: Configuration, clock: Clock, metricRegistry: MetricRegistry, tracer: Tracer)

Controls the lifecycle of all available modules.

class Object
trait Matchable
class Any

Value members

Concrete methods

def addReporter(name: String, description: Option[String], reporter: SpanReporter): Registration
def addReporter(name: String, description: Option[String], reporter: MetricReporter, metricFilter: Option[Filter]): Registration
def addScheduledAction(name: String, description: Option[String], collector: ScheduledAction, interval: Duration): Registration
def init(): Unit
def load(config: Config): Unit

Reads all available modules from the config and either starts, stops or reconfigures them in order to match the configured modules state.

Reads all available modules from the config and either starts, stops or reconfigures them in order to match the configured modules state.

def reconfigure(newConfig: Config): Unit

Schedules the reconfigure hook on all registered modules and applies the latest configuration settings to the registry.

Schedules the reconfigure hook on all registered modules and applies the latest configuration settings to the registry.

def register(name: String, description: Option[String], module: Module, metricFilter: Option[Filter], interval: Option[Duration]): Registration

Registers a module that has created programmatically. If a module with the specified name already exists the registration will fail. If the registered module is a MetricReporter and/or SpanReporter it will also be registered to receive the metrics and/or spans data upon every tick.

Registers a module that has created programmatically. If a module with the specified name already exists the registration will fail. If the registered module is a MetricReporter and/or SpanReporter it will also be registered to receive the metrics and/or spans data upon every tick.

def shutdown(): Unit
def stopModules(): Future[Unit]

Stops all registered modules. As part of the stop process, all modules get a last chance to report metrics and spans available until the call to stop.

Stops all registered modules. As part of the stop process, all modules get a last chance to report metrics and spans available until the call to stop.