Java 类org.springframework.boot.actuate.metrics.repository.MetricRepository 实例源码

项目:spring-analytics    文件:CounterControllerTests.java   
@Bean
public MetricRepository counterRepository() {
    return new RedisMetricRepository(redisConnectionFactory);
}
项目:spring-analytics    文件:CounterControllerTests.java   
@Bean
public CounterController counterController(MetricRepository metricRepository) {
    return new CounterController(metricRepository);
}
项目:spring-analytics    文件:CounterControllerTests.java   
@Bean
public CounterService counterService(MetricRepository metricRepository) {
    return new DefaultCounterService(metricRepository);
}
项目:spring-cloud-stream-app-starters    文件:CounterSinkStoreConfiguration.java   
@Bean
@ExportMetricWriter
public MetricRepository metricRepository() {
    return new RedisMetricRepository(redisConnectionFactory);
}
项目:spring-cloud-dataflow    文件:AbstractShellIntegrationTest.java   
@Bean
public MetricRepository metricRepository() {
    return new InMemoryMetricRepository();
}
项目:spring-cloud-dataflow    文件:CounterCommandsTests.java   
@BeforeClass
public static void setUpOnce() {
    repository = applicationContext.getBean(MetricRepository.class);
}
项目:spring-cloud-dataflow    文件:AnalyticsConfiguration.java   
@Bean
@ConditionalOnMissingBean
public MetricRepository metricRepository(RedisConnectionFactory redisConnectionFactory) {
    return new RedisMetricRepository(redisConnectionFactory);
}
项目:spring-cloud-dataflow    文件:DataFlowControllerAutoConfiguration.java   
@Bean
@ConditionalOnBean(MetricRepository.class)
public CounterController counterController(MetricRepository metricRepository) {
    return new CounterController(metricRepository);
}
项目:akanke    文件:MetricExporterService.java   
@Autowired
public MetricExporterService(@SuppressWarnings("SpringJavaAutowiringInspection") MetricRepository repository) {
    this.repository = repository;
}
项目:bulbs-core    文件:MonitoringConfig.java   
@Bean
public MetricRepository metricRepository() {
    return new InMemoryMetricRepository();
}
项目:spring-analytics    文件:CounterController.java   
/**
 * Create a {@link CounterController} that delegates to the provided {@link MetricRepository}.
 *
 * @param metricRepository the {@link MetricRepository} used by this controller
 */
public CounterController(MetricRepository metricRepository) {
    Assert.notNull(metricRepository, "metricRepository must not be null");
    this.metricRepository = metricRepository;
}