private void sendBatch() throws RemoteException { if (!sampleStore.isEmpty()) { listener.processBatch(sampleStore); sampleStore.clear(); sampleTable.clear(); sampleCount = 0; } }
/** * Checks if any sample events are still present in the sampleStore and * sends them to the listener. Informs the listener of the testended. * * @param host * the host that the test has ended on. */ @Override public void testEnded(String host) { log.info("Test Ended on {}", host); try { if (!sampleStore.isEmpty()) { listener.processBatch(sampleStore); sampleStore.clear(); } listener.testEnded(host); } catch (RemoteException err) { log.error("testEnded(host)", err); } }
try { log.debug("Firing sample"); listener.processBatch(clonedStore); clonedStore.clear(); } catch (RemoteException err) {
if (size > 0) { try { listener.processBatch(l); } catch (RemoteException err) { if (err.getCause() instanceof java.net.ConnectException){