Search in sources :

Example 1 with DefaultOffsetwaiter

use of com.ctrip.xpipe.redis.meta.server.dcchange.impl.DefaultOffsetwaiter in project x-pipe by ctripcorp.

the class DefaultOffsetwaiterTest method beforeDefaultOffsetwaiterTest.

@Before
public void beforeDefaultOffsetwaiterTest() throws Exception {
    offsetwaiter = new DefaultOffsetwaiter();
    offsetwaiter.setKeyedObjectPool(getXpipeNettyClientKeyedObjectPool());
    offsetwaiter.setMetaServerConfig(new UnitTestServerConfig().setWaitforOffsetMilli(waitforOffsetMilli));
    offsetwaiter.setScheduled(scheduled);
    executionLog = new ExecutionLog(currentTestName());
    host = "127.0.0.1";
    port = randomPort();
}
Also used : ExecutionLog(com.ctrip.xpipe.redis.meta.server.dcchange.ExecutionLog) DefaultOffsetwaiter(com.ctrip.xpipe.redis.meta.server.dcchange.impl.DefaultOffsetwaiter) UnitTestServerConfig(com.ctrip.xpipe.redis.meta.server.config.UnitTestServerConfig) Before(org.junit.Before)

Aggregations

UnitTestServerConfig (com.ctrip.xpipe.redis.meta.server.config.UnitTestServerConfig)1 ExecutionLog (com.ctrip.xpipe.redis.meta.server.dcchange.ExecutionLog)1 DefaultOffsetwaiter (com.ctrip.xpipe.redis.meta.server.dcchange.impl.DefaultOffsetwaiter)1 Before (org.junit.Before)1