checkResults(startTime, QUERY_TIME, firedQueries, unexpectedResultCount, exceptions);
}
private void startAndStopNodes(long queryTime) throws Exception {
Client client = new Client(ILuceneServer.class, _protocol);
Thread.sleep(queryTime / 4);
System.out.println("-----------------------SHUTDOWN NODE1: "
+ _protocol.getShard2NodesMap(_protocol.getShard2NodeShards()));
System.out.println(client.getSelectionPolicy().toString());
_miniCluster.shutdownNode(0);
Thread.sleep(queryTime / 4);
System.out.println("-----------------------SHUTDOWN NODE2: "
+ _protocol.getShard2NodesMap(_protocol.getShard2NodeShards()));
System.out.println(client.getSelectionPolicy().toString());
_miniCluster.shutdownNode(0);
Thread.sleep(queryTime / 4);
System.out.println("-----------------------START NEW NODE: "
+ _protocol.getShard2NodesMap(_protocol.getShard2NodeShards()));
System.out.println(client.getSelectionPolicy().toString());
_miniCluster.startAdditionalNode();
System.out.println("-----------------------SHUTDOWN NEW NODE: "
+ _protocol.getShard2NodesMap(_protocol.getShard2NodeShards()));
System.out.println(client.getSelectionPolicy().toString());
Thread.sleep(queryTime / 2);
_miniCluster.shutdownNode(_miniCluster.getRunningNodeCount() - 1);
}