@Test public void configurePerformanceStatistics() throws Exception { domain.setProperty(CamelContextConfigurator.PERFORMANCE_STATISTICS, "RoutesOnly"); CamelContextConfigurator.configure(context, domain); Assert.assertEquals(ManagementStatisticsLevel.RoutesOnly, context.getManagementStrategy().getStatisticsLevel()); domain.setProperty(CamelContextConfigurator.PERFORMANCE_STATISTICS, "Off"); CamelContextConfigurator.configure(context, domain); Assert.assertEquals(ManagementStatisticsLevel.Off, context.getManagementStrategy().getStatisticsLevel()); domain.setProperty(CamelContextConfigurator.PERFORMANCE_STATISTICS, "All"); CamelContextConfigurator.configure(context, domain); Assert.assertEquals(ManagementStatisticsLevel.All, context.getManagementStrategy().getStatisticsLevel()); }
private static void configurePerformanceStatistics(CamelContext context, Object value) { ManagementStatisticsLevel level = ManagementStatisticsLevel.valueOf(value.toString()); context.getManagementStrategy().setStatisticsLevel(level); }
CamelContextConfigurator { private static void configurePerformanceStatistics(CamelContext context, Object value) { ManagementStatisticsLevel level = ManagementStatisticsLevel.valueOf(value.toString()); context.getManagementStrategy().setStatisticsLevel(level); } }
CamelContextConfigurator { private static void configurePerformanceStatistics(CamelContext context, Object value) { ManagementStatisticsLevel level = ManagementStatisticsLevel.valueOf(value.toString()); context.getManagementStrategy().setStatisticsLevel(level); } private  CamelContextConfigurator(); }
CamelContextConfigurator { private static void configurePerformanceStatistics(CamelContext context, Object value) { ManagementStatisticsLevel level = ManagementStatisticsLevel.valueOf(value.toString()); context.getManagementStrategy().setStatisticsLevel(level); } private  CamelContextConfigurator(); static final void configure(CamelContext context, ServiceDomain domain); static final void configure(CamelContext context, Map<String, Object> properties); static final void configure(CamelContext context, String name, Object value); }
CamelContextConfigurator { private static void configurePerformanceStatistics(CamelContext context, Object value) { ManagementStatisticsLevel level = ManagementStatisticsLevel.valueOf(value.toString()); context.getManagementStrategy().setStatisticsLevel(level); } private  CamelContextConfigurator(); static final void configure(CamelContext context, ServiceDomain domain); static final void configure(CamelContext context, Map<String, Object> properties); static final void configure(CamelContext context, String name, Object value); static final String SHUTDOWN_TIMEOUT; static final String PERFORMANCE_STATISTICS; static final String CAMEL_CONTEXT_CONFIG; }