207208209210211212213214215
endTime = System.currentTimeMillis(); LOG.info("Throughput: " + ((long)entryCount)*1000/(endTime-startTime)); bc.close(); channelFactory.releaseExternalResources(); executor.shutdown(); } }
220221222223224225226227
bc.addEntry(addr, ledger, new byte[0], i, ChannelBuffers.wrappedBuffer(hello), cb, counter, 0); } counter.wait(0); System.out.println("Total = " + counter.total()); channelFactory.releaseExternalResources(); executor.shutdown(); } }
269270271272273274275276