use of voldemort.server.niosocket.NonRespondingSocketService in project voldemort by voldemort.
the class ClientRequestExecutorPoolTest method setUp.
@Before
public void setUp() throws IOException {
this.port = ServerTestUtils.findFreePort();
this.pool = new ClientRequestExecutorPool(2, maxConnectionsPerNode, CONNECTION_TIMEOUT_MS, SOCKET_TIMEOUT_MS, IDLE_CONNECTION_TIMEOUT_MS, 32 * 1024, false, true, new String());
this.dest1 = new SocketDestination("localhost", port, RequestFormatType.VOLDEMORT_V1);
startServer();
this.nonRespondingPort = ServerTestUtils.findFreePort();
this.nonRespondingDest = new SocketDestination("localhost", nonRespondingPort, RequestFormatType.VOLDEMORT_V1);
this.nonRespondingServer = new NonRespondingSocketService(nonRespondingPort);
this.nonRespondingServer.start();
}
Aggregations