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();
}
Aggregations