pull/6414/head
Phillip Webb 8 years ago
parent ef6139be63
commit e03e109874

@ -36,7 +36,9 @@ import org.springframework.util.Assert;
public class RedisHealthIndicator extends AbstractHealthIndicator {
private static final String VERSION = "version";
private static final String REDIS_VERSION = "redis_version";
private final RedisConnectionFactory redisConnectionFactory;
public RedisHealthIndicator(RedisConnectionFactory connectionFactory) {
@ -52,8 +54,7 @@ public class RedisHealthIndicator extends AbstractHealthIndicator {
if (connection instanceof RedisClusterConnection) {
ClusterInfo clusterInfo = ((RedisClusterConnection) connection)
.clusterGetClusterInfo();
builder.up()
.withDetail("cluster_size", clusterInfo.getClusterSize())
builder.up().withDetail("cluster_size", clusterInfo.getClusterSize())
.withDetail("slots_up", clusterInfo.getSlotsOk())
.withDetail("slots_fail", clusterInfo.getSlotsFail());
}

@ -34,6 +34,7 @@ import org.springframework.context.annotation.Import;
* @author Phillip Webb
* @since 1.2.0
*/
@SuppressWarnings("deprecation")
@ConditionalOnClass(javax.transaction.Transaction.class)
@ConditionalOnProperty(prefix = "spring.jta", value = "enabled", matchIfMissing = true)
@AutoConfigureBefore({ XADataSourceAutoConfiguration.class,

@ -29,7 +29,6 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Phillip Webb
*/
@Deprecated
@SuppressWarnings("deprecation")
public class HornetQEmbeddedConfigurationFactoryTests {
@Test

Loading…
Cancel
Save