Java 类org.springframework.boot.actuate.endpoint.MetricReaderPublicMetrics 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:MetricsDropwizardAutoConfiguration.java   
@Bean
public MetricReaderPublicMetrics dropwizardPublicMetrics(
        MetricRegistry metricRegistry) {
    MetricRegistryMetricReader reader = new MetricRegistryMetricReader(
            metricRegistry);
    return new MetricReaderPublicMetrics(reader);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:PublicMetricsAutoConfiguration.java   
@Bean
public MetricReaderPublicMetrics metricReaderPublicMetrics() {
    return new MetricReaderPublicMetrics(
            new CompositeMetricReader(this.metricReaders == null ? new MetricReader[0]
                    : this.metricReaders
                            .toArray(new MetricReader[this.metricReaders.size()])));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:PublicMetricsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(name = "springIntegrationPublicMetrics")
public MetricReaderPublicMetrics springIntegrationPublicMetrics(
        IntegrationMBeanExporter exporter) {
    return new MetricReaderPublicMetrics(
            new SpringIntegrationMetricReader(exporter));
}
项目:spring-boot-concourse    文件:MetricsDropwizardAutoConfiguration.java   
@Bean
public MetricReaderPublicMetrics dropwizardPublicMetrics(
        MetricRegistry metricRegistry) {
    MetricRegistryMetricReader reader = new MetricRegistryMetricReader(
            metricRegistry);
    return new MetricReaderPublicMetrics(reader);
}
项目:spring-boot-concourse    文件:PublicMetricsAutoConfiguration.java   
@Bean
public MetricReaderPublicMetrics metricReaderPublicMetrics() {
    return new MetricReaderPublicMetrics(
            new CompositeMetricReader(this.metricReaders == null ? new MetricReader[0]
                    : this.metricReaders
                            .toArray(new MetricReader[this.metricReaders.size()])));
}
项目:spring-boot-concourse    文件:PublicMetricsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean(name = "springIntegrationPublicMetrics")
public MetricReaderPublicMetrics springIntegrationPublicMetrics(
        IntegrationMBeanExporter exporter) {
    return new MetricReaderPublicMetrics(
            new SpringIntegrationMetricReader(exporter));
}
项目:contestparser    文件:MetricsDropwizardAutoConfiguration.java   
@Bean
public MetricReaderPublicMetrics dropwizardPublicMetrics(
        MetricRegistry metricRegistry) {
    MetricRegistryMetricReader reader = new MetricRegistryMetricReader(
            metricRegistry);
    return new MetricReaderPublicMetrics(reader);
}
项目:contestparser    文件:PublicMetricsAutoConfiguration.java   
@Bean
@ConditionalOnMissingBean
public MetricReaderPublicMetrics springIntegrationPublicMetrics(
        IntegrationMBeanExporter exporter) {
    return new MetricReaderPublicMetrics(
            new SpringIntegrationMetricReader(exporter));
}
项目:bulbs-core    文件:MonitoringConfig.java   
@Bean
public PublicMetrics threadPoolMetrics() {
    return new PublicMetricsAggregator(
        new ThreadPoolMetrics(ctx),
        new MetricReaderPublicMetrics(metricRepository())
    );
}
项目:cat-boot    文件:ClusterMetricsConfig.java   
@Bean
public PublicMetrics metricsAggregate() {
    return new MetricReaderPublicMetrics(aggregatesMetricReader());
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void metricReaderPublicMetrics() throws Exception {
    load();
    assertThat(this.context.getBeansOfType(MetricReaderPublicMetrics.class))
            .hasSize(1);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AggregateMetricsConfiguration.java   
@Bean
public PublicMetrics metricsAggregate() {
    return new MetricReaderPublicMetrics(aggregatesMetricReader());
}
项目:spring-boot-concourse    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void metricReaderPublicMetrics() throws Exception {
    load();
    assertThat(this.context.getBeansOfType(MetricReaderPublicMetrics.class))
            .hasSize(1);
}
项目:spring-boot-concourse    文件:AggregateMetricsConfiguration.java   
@Bean
public PublicMetrics metricsAggregate() {
    return new MetricReaderPublicMetrics(aggregatesMetricReader());
}
项目:contestparser    文件:PublicMetricsAutoConfiguration.java   
@Bean
public MetricReaderPublicMetrics metricReaderPublicMetrics() {
    return new MetricReaderPublicMetrics(new CompositeMetricReader(
            this.metricReaders.toArray(new MetricReader[0])));
}
项目:contestparser    文件:PublicMetricsAutoConfigurationTests.java   
@Test
public void metricReaderPublicMetrics() throws Exception {
    load();
    assertEquals(1,
            this.context.getBeansOfType(MetricReaderPublicMetrics.class).size());
}
项目:contestparser    文件:AggregateMetricsConfiguration.java   
@Bean
public PublicMetrics metricsAggregate() {
    return new MetricReaderPublicMetrics(aggregatesMetricReader());
}
项目:spring-cloud-netflix-contrib    文件:SpectatorAutoConfiguration.java   
@Bean
public MetricReaderPublicMetrics spectatorPublicMetrics(Registry metricRegistry) {
    SpectatorMetricReader reader = new SpectatorMetricReader(metricRegistry);
    return new MetricReaderPublicMetrics(reader);
}