@Test public void enabled() { assertThat(configuration.isMetricsEnabled()).isTrue(); assertThat(camundaBpmProperties.getMetrics().isEnabled()).isTrue(); camundaBpmProperties.getMetrics().setEnabled(false); defaultMetricsConfiguration.preInit(configuration); assertThat(configuration.isMetricsEnabled()).isFalse(); camundaBpmProperties.getMetrics().setEnabled(true); defaultMetricsConfiguration.preInit(configuration); assertThat(configuration.isMetricsEnabled()).isTrue(); }
@Override public void preInit(final SpringProcessEngineConfiguration configuration) { configuration.setMetricsEnabled(metrics.isEnabled()); configuration.setDbMetricsReporterActivate(metrics.isDbReporterActivate()); }
DefaultMetricsConfiguration extends AbstractCamundaConfiguration implements CamundaMetricsConfiguration { @Override public void preInit(final SpringProcessEngineConfiguration configuration) { configuration.setMetricsEnabled(metrics.isEnabled()); configuration.setDbMetricsReporterActivate(metrics.isDbReporterActivate()); } }
DefaultMetricsConfiguration extends AbstractCamundaConfiguration implements CamundaMetricsConfiguration { @Override public void preInit(final SpringProcessEngineConfiguration configuration) { configuration.setMetricsEnabled(metrics.isEnabled()); configuration.setDbMetricsReporterActivate(metrics.isDbReporterActivate()); }  }
DefaultMetricsConfiguration extends AbstractCamundaConfiguration implements CamundaMetricsConfiguration { @Override public void preInit(final SpringProcessEngineConfiguration configuration) { configuration.setMetricsEnabled(metrics.isEnabled()); configuration.setDbMetricsReporterActivate(metrics.isDbReporterActivate()); }  @Override void preInit(final SpringProcessEngineConfiguration configuration); }
DefaultMetricsConfiguration extends AbstractCamundaConfiguration implements CamundaMetricsConfiguration { @Override public void preInit(final SpringProcessEngineConfiguration configuration) { configuration.setMetricsEnabled(metrics.isEnabled()); configuration.setDbMetricsReporterActivate(metrics.isDbReporterActivate()); }  @Override void preInit(final SpringProcessEngineConfiguration configuration);  }