List of usage examples for org.springframework.integration.support.management MessageSourceMetrics getManagedName
String getManagedName();
From source file:org.springframework.integration.config.IntegrationManagementConfigurer.java
private void configureSourceMetrics(String name, MessageSourceMetrics bean) { Boolean enabled = PatternMatchUtils.smartMatch(name, this.enabledCountsPatterns); if (enabled != null) { bean.setCountsEnabled(enabled);// w ww .j av a 2 s. co m } else { if (!bean.getOverrides().countsConfigured) { bean.setCountsEnabled(this.defaultCountsEnabled); } } this.sourcesByName.put(bean.getManagedName() != null ? bean.getManagedName() : name, bean); }
From source file:org.springframework.integration.support.management.IntegrationManagementConfigurer.java
private void configureSourceMetrics(String name, MessageSourceMetrics bean) { Boolean enabled = smartMatch(this.enabledCountsPatterns, name); if (enabled != null) { bean.setCountsEnabled(enabled);//from ww w .ja v a2 s . co m } else { bean.setCountsEnabled(this.defaultCountsEnabled); } this.sourcesByName.put(bean.getManagedName() != null ? bean.getManagedName() : name, bean); }