Search in sources :

Example 1 with NonRespondingSocketService

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();
}
Also used : NonRespondingSocketService(voldemort.server.niosocket.NonRespondingSocketService) SocketDestination(voldemort.store.socket.SocketDestination) ClientRequestExecutorPool(voldemort.store.socket.clientrequest.ClientRequestExecutorPool) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 NonRespondingSocketService (voldemort.server.niosocket.NonRespondingSocketService)1 SocketDestination (voldemort.store.socket.SocketDestination)1 ClientRequestExecutorPool (voldemort.store.socket.clientrequest.ClientRequestExecutorPool)1