@Override public void onFailure(Throwable throwable) { ExceptionReporter.report(name, throwable); } }
@Override public void onFailure(Throwable throwable) { ExceptionReporter.report(name, throwable); } }
@Override protected void onProcessOperationFailure(Throwable t) { ExceptionReporter.report(testId, t); }
@Override protected void onProcessOperationFailure(Throwable t) { ExceptionReporter.report(null, t); }
@Override @SuppressWarnings("PMD.AvoidCatchingThrowable") public void run() { try { super.run(); } catch (Throwable t) { ExceptionReporter.report(testId, t); } } }
@Override @SuppressWarnings("PMD.AvoidCatchingThrowable") public void run() { try { super.run(); } catch (Throwable t) { ExceptionReporter.report(testId, t); } } }
@Override public void onFailure(Throwable throwable) { ExceptionReporter.report(testContext.getTestId(), throwable); } });
private void handleThrowable(Exception exception) throws Exception { if (throwError) { throw exception; } else { ExceptionReporter.report(testContext.getTestId(), exception); } }
@Override public void onFailure(Throwable throwable) { ExceptionReporter.report(testContext.getTestId(), throwable); } });
@Override public void onFailure(Throwable throwable) { ExceptionReporter.report(testContext.getTestId(), throwable); } });
@Override public void onFailure(Throwable throwable) { ExceptionReporter.report(testContext.getTestId(), throwable); } });
@Override public void onFailure(Throwable throwable) { ExceptionReporter.report(testContext.getTestId(), throwable); } });
private void handleThrowable(Error error) { if (throwError) { throw error; } else { ExceptionReporter.report(testContext.getTestId(), error); } }
@Override @SuppressWarnings("PMD.AvoidCatchingThrowable") public final void run() { try { run0(); LOGGER.info(format("%s %s of %s SUCCEEDED %s ", DASHES, testPhase.desc(), testId, DASHES)); } catch (Throwable t) { LOGGER.error(format("%s %s of %s FAILED %s ", DASHES, testPhase.desc(), testId, DASHES), t); ExceptionReporter.report(testId, t); } finally { sendPhaseCompletedOperation(testPhaseReference.getAndSet(null)); } }
@Override public final void onFailure(Throwable t) { try { ExceptionReporter.report(getTestId(), t); } finally { handleFailure(t); } }
@Override public void onFailure(Throwable throwable) { onResponse(startNanos); ExceptionReporter.report(testContext.getTestId(), throwable); } }
public static void main(String[] args) { int pid = NativeUtils.getPID(); LOGGER.info("PID: " + pid); writeText("" + pid, new File(getUserDir(), "worker.pid")); try { startWorker(); } catch (Exception e) { ExceptionReporter.report(null, e); exitWithError(LOGGER, "Could not start Hazelcast Simulator Worker!", e); } }
@Override public void onMessage(Message<MessageEntity> message) { String threadId = message.getMessageObject().thread; Long previousValue = values.get(threadId); if (previousValue == null) { previousValue = 0L; } long actualValue = message.getMessageObject().value; long expectedValue = previousValue + 1; if (expectedValue != actualValue) { failures.incrementAndGet(); ExceptionReporter.report(testContext.getTestId(), new TestException(format( "There is an unexpected gap or equality between values. Expected %d, but was %d", expectedValue, actualValue))); } values.put(threadId, actualValue); if (received.getAndIncrement() % 100000 == 0) { logger.info(toString() + " is at " + message.getMessageObject().toString()); } }