本文整理汇总了Java中org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository类的典型用法代码示例。如果您正苦于以下问题:Java RedisMetricRepository类的具体用法?Java RedisMetricRepository怎么用?Java RedisMetricRepository使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RedisMetricRepository类属于org.springframework.boot.actuate.metrics.repository.redis包,在下文中一共展示了RedisMetricRepository类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: redisMetricWriter
import org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository; //导入依赖的package包/类
@Bean
@ExportMetricWriter
public RedisMetricRepository redisMetricWriter(
RedisConnectionFactory connectionFactory) {
return new RedisMetricRepository(connectionFactory,
this.export.getRedis().getPrefix(), this.export.getRedis().getKey());
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:8,代码来源:SampleRedisExportApplication.java
示例2: metricWriter
import org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository; //导入依赖的package包/类
@Bean
@ExportMetricWriter
public MetricWriter metricWriter(MetricExportProperties export) {
return new RedisMetricRepository(redisConnectionFactory,
export.getRedis().getPrefix(), export.getRedis().getKey());
}
开发者ID:Catalysts,项目名称:cat-boot,代码行数:7,代码来源:ClusterMetricsConfig.java
示例3: globalMetricsForAggregation
import org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository; //导入依赖的package包/类
private MetricReader globalMetricsForAggregation() {
return new RedisMetricRepository(this.redisConnectionFactory,
this.export.getRedis().getAggregatePrefix(), this.export.getRedis().getKey());
}
开发者ID:Catalysts,项目名称:cat-boot,代码行数:5,代码来源:ClusterMetricsConfig.java
示例4: counterRepository
import org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository; //导入依赖的package包/类
@Bean
public MetricRepository counterRepository() {
return new RedisMetricRepository(redisConnectionFactory);
}
开发者ID:spring-projects,项目名称:spring-analytics,代码行数:5,代码来源:CounterControllerTests.java
示例5: globalMetricsForAggregation
import org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository; //导入依赖的package包/类
private MetricReader globalMetricsForAggregation() {
return new RedisMetricRepository(this.connectionFactory,
this.export.getRedis().getAggregatePrefix(),
this.export.getRedis().getKey());
}
开发者ID:vikrammane23,项目名称:https-github.com-g0t4-jenkins2-course-spring-boot,代码行数:6,代码来源:AggregateMetricsConfiguration.java
示例6: metricRepository
import org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository; //导入依赖的package包/类
@Bean
@ExportMetricWriter
public MetricRepository metricRepository() {
return new RedisMetricRepository(redisConnectionFactory);
}
开发者ID:spring-cloud,项目名称:spring-cloud-stream-app-starters,代码行数:6,代码来源:CounterSinkStoreConfiguration.java
示例7: init
import org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository; //导入依赖的package包/类
@Before
public void init() {
assertThat(this.redisMetricRepository, instanceOf(RedisMetricRepository.class));
redisMetricRepository.reset("counter.simpleCounter");
}
开发者ID:spring-cloud,项目名称:spring-cloud-stream-app-starters,代码行数:6,代码来源:AbstractCounterSinkTests.java
示例8: metricRepository
import org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean
public MetricRepository metricRepository(RedisConnectionFactory redisConnectionFactory) {
return new RedisMetricRepository(redisConnectionFactory);
}
开发者ID:spring-cloud,项目名称:spring-cloud-dataflow,代码行数:6,代码来源:AnalyticsConfiguration.java
注:本文中的org.springframework.boot.actuate.metrics.repository.redis.RedisMetricRepository类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论