/** * Sets and initializes the monitoring controller, if it has not been set yet. * * @param monitoringController * The monitoring controller. */ protected final void setMonitoringController(final MonitoringController monitoringController) { synchronized (this) { if (this.monitoringController == null) { this.monitoringController = monitoringController; if (!this.monitoringController.isTerminated()) { this.init(); } } } }
/** * Sets and initializes the monitoring controller, if it has not been set yet. * * @param monitoringController * The monitoring controller. */ protected final void setMonitoringController(final MonitoringController monitoringController) { synchronized (this) { if (this.monitoringController == null) { this.monitoringController = monitoringController; if (!this.monitoringController.isTerminated()) { this.init(); } } } }