/** * Stops the {@link ContextAwareReporter}. If the {@link ContextAwareReporter} has not been started, or if it has been * stopped already, and not started since, this is a no-op. */ public final void stop() { if (!this.started) { log.warn(String.format("Reporter %s has already been stopped.", this.name)); return; } try { stopImpl(); this.started = false; } catch (Exception exception) { log.warn(String.format("Reporter %s did not stop correctly.", this.name), exception); } }
/** * Stops the {@link ContextAwareReporter}. If the {@link ContextAwareReporter} has not been started, or if it has been * stopped already, and not started since, this is a no-op. */ public final void stop() { if (!this.started) { log.warn(String.format("Reporter %s has already been stopped.", this.name)); return; } try { stopImpl(); this.started = false; } catch (Exception exception) { log.warn(String.format("Reporter %s did not stop correctly.", this.name), exception); } }