Search in sources :

Example 1 with DefaultRedisSessionManager

use of com.ctrip.xpipe.redis.console.health.DefaultRedisSessionManager in project x-pipe by ctripcorp.

the class DefaultSentinelCollectorTest method beforeDefaultSentinelCollectorTest.

@Before
public void beforeDefaultSentinelCollectorTest() {
    sentinelCollector = new DefaultSentinelCollector();
    sentinelCollector.setSessionManager(new DefaultRedisSessionManager(1, Executors.newFixedThreadPool(1), Executors.newFixedThreadPool(1)));
    masterSentinels = Sets.newHashSet(new HostPort("127.0.0.1", 5000), new HostPort("127.0.0.1", 5001), new HostPort("127.0.0.1", 5002), new HostPort("127.0.0.1", 5003), new HostPort("127.0.0.1", 5004));
}
Also used : DefaultRedisSessionManager(com.ctrip.xpipe.redis.console.health.DefaultRedisSessionManager) HostPort(com.ctrip.xpipe.endpoint.HostPort) Before(org.junit.Before)

Aggregations

HostPort (com.ctrip.xpipe.endpoint.HostPort)1 DefaultRedisSessionManager (com.ctrip.xpipe.redis.console.health.DefaultRedisSessionManager)1 Before (org.junit.Before)1