Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

registers MBean in ClientRequestExecutorPoolTest.java so that ClientS…

…ocketStats object will exist for testing
  • Loading branch information...
commit 9c520a9ea5edeef36a76e1e70e5055fafa14f511 1 parent 1197e9b
@zhongjiewu zhongjiewu authored
View
11 test/unit/voldemort/server/socket/ClientRequestExecutorPoolTest.java
@@ -38,6 +38,7 @@
import voldemort.store.socket.SocketDestination;
import voldemort.store.socket.clientrequest.ClientRequestExecutor;
import voldemort.store.socket.clientrequest.ClientRequestExecutorPool;
+import voldemort.store.stats.ClientSocketStats;
/**
* Tests for the socket pooling
@@ -52,6 +53,7 @@
private ClientRequestExecutorPool pool;
private SocketDestination dest1;
private AbstractSocketService server;
+ private ClientSocketStats stats;
private final boolean useNio;
@@ -67,8 +69,15 @@ public ClientRequestExecutorPoolTest(boolean useNio) {
@Override
@Before
public void setUp() {
+ this.stats = new ClientSocketStats();
this.port = ServerTestUtils.findFreePort();
- this.pool = new ClientRequestExecutorPool(maxConnectionsPerNode, 1000, 1000, 32 * 1024);
+ this.pool = new ClientRequestExecutorPool(2,
+ maxConnectionsPerNode,
+ 1000,
+ 1000,
+ 32 * 1024,
+ false,
+ stats);
this.dest1 = new SocketDestination("localhost", port, RequestFormatType.VOLDEMORT_V1);
RequestHandlerFactory handlerFactory = ServerTestUtils.getSocketRequestHandlerFactory(new StoreRepository());
this.server = ServerTestUtils.getSocketService(useNio,
Please sign in to comment.
Something went wrong with that request. Please try again.