Search in sources :

Example 1 with SocketPool

use of voldemort.client.protocol.admin.SocketPool in project voldemort by voldemort.

the class SocketPoolTest method setUp.

@Override
@Before
public void setUp() {
    this.port = ServerTestUtils.findFreePort();
    this.pool = new SocketPool(maxConnectionsPerNode, 1000, 1000, 32 * 1024);
    this.dest1 = new SocketDestination("localhost", port, RequestFormatType.VOLDEMORT_V1);
    RequestHandlerFactory handlerFactory = ServerTestUtils.getSocketRequestHandlerFactory(new StoreRepository());
    this.server = ServerTestUtils.getSocketService(useNio, handlerFactory, port, 10, 10 + 3, 10000);
    this.server.start();
}
Also used : SocketPool(voldemort.client.protocol.admin.SocketPool) SocketDestination(voldemort.store.socket.SocketDestination) RequestHandlerFactory(voldemort.server.protocol.RequestHandlerFactory) StoreRepository(voldemort.server.StoreRepository) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 SocketPool (voldemort.client.protocol.admin.SocketPool)1 StoreRepository (voldemort.server.StoreRepository)1 RequestHandlerFactory (voldemort.server.protocol.RequestHandlerFactory)1 SocketDestination (voldemort.store.socket.SocketDestination)1