Examples of MetricWriter


Examples of org.springframework.boot.actuate.metrics.writer.MetricWriter

    @Primary
    @ConditionalOnMissingBean(name = "primaryMetricWriter")
    public MetricWriter primaryMetricWriter(
        @Qualifier("metricsChannel") SubscribableChannel channel,
        List<MetricWriter> writers) {
      final MetricWriter observer = new CompositeMetricWriter(writers);
      channel.subscribe(new MetricWriterMessageHandler(observer));
      return new MessageChannelMetricWriter(channel);
    }
View Full Code Here

Examples of org.springframework.boot.actuate.metrics.writer.MetricWriter

        SyncTaskExecutorConfiguration.class, WriterConfig.class,
        MetricRepositoryAutoConfiguration.class);
    DefaultGaugeService gaugeService = context.getBean(DefaultGaugeService.class);
    assertNotNull(gaugeService);
    gaugeService.submit("foo", 2.7);
    MetricWriter writer = context.getBean("writer", MetricWriter.class);
    verify(writer).set(any(Metric.class));
    context.close();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.