@Test public void should_load_default_configuration_and_initialize() throws ConfigurationException, InterruptedException { final ModuleConfiguration config = testConfiguration(); initializeTestMBean(config); final MetricsModule module = new MetricsModule(config, testReporters(), GlobalConfiguration.getDefault()); module.stop(); deinitializeTestMBean(); }
@Override public void stop() { logger.trace("Stopping metrics module."); timer.cancel(); metricsCollector.close(); }
MetricsModule extends Module { @Override public void stop() { logger.trace("Stopping metrics module."); timer.cancel(); metricsCollector.close(); } }
MetricsModule extends Module { @Override public void stop() { logger.trace("Stopping metrics module."); timer.cancel(); metricsCollector.close(); } MetricsModule(ModuleConfiguration configuration, List<Reporter> reporters,
            final GlobalConfiguration globalConfiguration); }
MetricsModule extends Module { @Override public void stop() { logger.trace("Stopping metrics module."); timer.cancel(); metricsCollector.close(); } MetricsModule(ModuleConfiguration configuration, List<Reporter> reporters,
            final GlobalConfiguration globalConfiguration); @Override void stop(); }
MetricsModule extends Module { @Override public void stop() { logger.trace("Stopping metrics module."); timer.cancel(); metricsCollector.close(); } MetricsModule(ModuleConfiguration configuration, List<Reporter> reporters,
            final GlobalConfiguration globalConfiguration); @Override void stop();  }