zkServer.stop();
}
});
SenseiBrokerProxy brokerProxy = SenseiBrokerProxy.valueOf(senseiConfiguration, new HashMap<String, String>(), new SenseiJavaSerializer());
while (true) {
SenseiResult senseiResult = brokerProxy.doQuery(new SenseiRequest()).get(0);
int totalDocs = senseiResult.getTotalDocs();
System.out.println("TotalDocs = " + totalDocs);
if (totalDocs >= expectedDocs) {
break;
}