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

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:SampleRedisExportApplication.java   
@Bean
@ExportMetricWriter
public RedisMetricRepository redisMetricWriter(
        RedisConnectionFactory connectionFactory) {
    return new RedisMetricRepository(connectionFactory,
            this.export.getRedis().getPrefix(), this.export.getRedis().getKey());
}
项目:spring-boot-concourse    文件:SampleRedisExportApplication.java   
@Bean
@ExportMetricWriter
public RedisMetricRepository redisMetricWriter(
        RedisConnectionFactory connectionFactory) {
    return new RedisMetricRepository(connectionFactory,
            this.export.getRedis().getPrefix(), this.export.getRedis().getKey());
}
项目:contestparser    文件:SampleRedisExportApplication.java   
@Bean
@ExportMetricWriter
public RedisMetricRepository redisMetricWriter(
        RedisConnectionFactory connectionFactory) {
    return new RedisMetricRepository(connectionFactory,
            this.export.getRedis().getPrefix(), this.export.getRedis().getKey());
}
项目:cat-boot    文件:ClusterMetricsConfig.java   
@Bean
@ExportMetricWriter
public MetricWriter metricWriter(MetricExportProperties export) {
    return new RedisMetricRepository(redisConnectionFactory,
            export.getRedis().getPrefix(), export.getRedis().getKey());
}
项目:cat-boot    文件:ClusterMetricsConfig.java   
private MetricReader globalMetricsForAggregation() {
    return new RedisMetricRepository(this.redisConnectionFactory,
            this.export.getRedis().getAggregatePrefix(), this.export.getRedis().getKey());
}
项目:spring-analytics    文件:CounterControllerTests.java   
@Bean
public MetricRepository counterRepository() {
    return new RedisMetricRepository(redisConnectionFactory);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:AggregateMetricsConfiguration.java   
private MetricReader globalMetricsForAggregation() {
    return new RedisMetricRepository(this.connectionFactory,
            this.export.getRedis().getAggregatePrefix(),
            this.export.getRedis().getKey());
}
项目:spring-boot-concourse    文件:AggregateMetricsConfiguration.java   
private MetricReader globalMetricsForAggregation() {
    return new RedisMetricRepository(this.connectionFactory,
            this.export.getRedis().getAggregatePrefix(),
            this.export.getRedis().getKey());
}
项目:spring-cloud-stream-app-starters    文件:CounterSinkStoreConfiguration.java   
@Bean
@ExportMetricWriter
public MetricRepository metricRepository() {
    return new RedisMetricRepository(redisConnectionFactory);
}
项目:spring-cloud-stream-app-starters    文件:AbstractCounterSinkTests.java   
@Before
public void init() {
    assertThat(this.redisMetricRepository, instanceOf(RedisMetricRepository.class));
    redisMetricRepository.reset("counter.simpleCounter");
}
项目:spring-cloud-dataflow    文件:AnalyticsConfiguration.java   
@Bean
@ConditionalOnMissingBean
public MetricRepository metricRepository(RedisConnectionFactory redisConnectionFactory) {
    return new RedisMetricRepository(redisConnectionFactory);
}
项目:contestparser    文件:AggregateMetricsConfiguration.java   
private MetricReader globalMetricsForAggregation() {
    return new RedisMetricRepository(this.connectionFactory,
            this.export.getRedis().getAggregatePrefix(),
            this.export.getRedis().getKey());
}