RedisConfiguration { Set<String> sentinels() { return new HashSet<>(Arrays.asList(server.split("[/;]"))); } RedisConfiguration(SessionConfiguration conf); ExpirationStrategy getStrategy(); Integer getTimeout(); String getPoolSize(); List<HostAndPort> hostsAndPorts(); @Override String toString(); static final String METRIC_PREFIX; static final String REDIS_USE_IPV4; static final String REDIS_USE_IPV6; static final String REDIS_EXPIRATION_STRATEGY; static final String REDIS_TIMEOUT; static final String DEFAULT_REDIS_TIMEOUT; static final String REDIS_PORT; static final String REDIS_HOST; static final String REDIS_PASSWORD; static final String REDIS_SSL; static final String REDIS_TLS; static final String REDIS_POOL_SIZE; static final String DEFAULT_REDIS_POOL_SIZE; static final String REDIS_CLUSTER_MODE; static final String REDIS_MASTER_NAME; static final String DEFAULT_REDIS_MASTER_NAME; }
@Test public void testExtractSentinels() { RedisConfiguration configuration = new RedisConfiguration(sc); Set<String> sentinels = configuration.sentinels(); assertEquals(1, sentinels.size()); assertEquals("localhost", sentinels.iterator().next()); }