public class MetricsModule extends Object implements com.google.inject.Module
MonitorScheduler
to monitor things on a regular schedule. Monitor
s must be explicitly
bound in order to be loaded.Constructor and Description |
---|
MetricsModule() |
Modifier and Type | Method and Description |
---|---|
void |
configure(com.google.inject.Binder binder) |
com.metamx.metrics.MonitorScheduler |
getMonitorScheduler(com.google.common.base.Supplier<DruidMonitorSchedulerConfig> config,
MonitorsConfig monitorsConfig,
Set<Class<? extends com.metamx.metrics.Monitor>> monitorSet,
com.metamx.emitter.service.ServiceEmitter emitter,
com.google.inject.Injector injector) |
static void |
register(com.google.inject.Binder binder,
Class<? extends com.metamx.metrics.Monitor> monitorClazz) |
public static void register(com.google.inject.Binder binder, Class<? extends com.metamx.metrics.Monitor> monitorClazz)
public void configure(com.google.inject.Binder binder)
configure
in interface com.google.inject.Module
@Provides public com.metamx.metrics.MonitorScheduler getMonitorScheduler(com.google.common.base.Supplier<DruidMonitorSchedulerConfig> config, MonitorsConfig monitorsConfig, Set<Class<? extends com.metamx.metrics.Monitor>> monitorSet, com.metamx.emitter.service.ServiceEmitter emitter, com.google.inject.Injector injector)
Copyright © 2011–2015. All rights reserved.