@Override public void testEnded() { try { listener.testEnded(); } catch (Exception ex) { log.error("Exception on testEnded.", ex); // $NON-NLS-1$ } }
@Override public void testEnded(String host) { try { listener.testEnded(host); } catch (Exception ex) { log.error("Exception on testEnded on host {}", host, ex); // $NON-NLS-1$ } }
@Override public void testEnded(String host) { log.info("Test Ended on {}", host); try { listener.testEnded(host); } catch (RemoteException ex) { log.warn("testEnded(host)", ex); } }
@Override public void testEnded(String host) { log.debug("Test Ended on {}", host); try { listener.testEnded(host); queue.put(FINAL_EVENT); } catch (Exception ex) { log.warn("testEnded(host)", ex); } if (queueWaits > 0) { log.info("QueueWaits: {}; QueueWaitTime: {} (nanoseconds)", queueWaits, queueWaitTime); } }
/** * Checks if any sample events are still present in the sampleStore and * sends them to the listener. Informs the listener that the test ended. * * @param host the hostname that the test has ended on. */ @Override public void testEnded(String host) { log.info("Test Ended on {}", host); try { if (!sampleStore.isEmpty()) { sendBatch(); } listener.testEnded(host); } catch (RemoteException err) { log.warn("testEnded(hostname)", err); } }
@Override public void testEnded(String host) { log.info("Test Ended on {}", host); try { for (SampleEvent se : sampleStore) { listener.sampleOccurred(se); } listener.testEnded(host); sampleStore.clear(); } catch (Error | RuntimeException ex) { // NOSONAR We want to have errors logged in log file log.error("testEnded(host)", ex); throw ex; } catch (Exception ex) { log.error("testEnded(host)", ex); } }
/** * 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); } }
} finally { try { listener.testEnded(host); } catch (RemoteException e) { log.error("returning sample", e);