public final void visitPreMeasurement(MeasurementPoint measurementPoint) { try { if (!collecting) { return; } if (!started) { if (!noStartedErrorMessageFlag) { showMonitorNotStartedMessage(); } return; } if (measurementPoint == null) { return; } doVisitPreMeasurement(measurementPoint); measurementPoint.setTicks(timer.getTicksPerSecond()); measurementPoint.setStartTime(timer.getCurrentTime()); // catch all exceptions here // in order to avoid negative side effects for // our business logic } catch (Exception e) { log.warn("Caught exception within measurement code. ", e); } }
public final void visitPreMeasurement(MeasurementPoint measurementPoint) { try { if (!collecting) { return; } if (!started) { if (!noStartedErrorMessageFlag) { showMonitorNotStartedMessage(); } return; } if (measurementPoint == null) { return; } doVisitPreMeasurement(measurementPoint); measurementPoint.setTicks(timer.getTicksPerSecond()); measurementPoint.setStartTime(timer.getCurrentTime()); // catch all exceptions here // in order to avoid negative side effects for // our business logic } catch (Exception e) { LOG.warn("Caught exception within measurement code. ", e); } }