/** * Start the thread that does the node resource utilization monitoring. */ @Override protected void serviceStart() throws Exception { if (this.isEnabled()) { this.monitoringThread.start(); } super.serviceStart(); }
/** * Start the thread that does the node resource utilization monitoring. */ @Override protected void serviceStart() throws Exception { if (this.isEnabled()) { this.monitoringThread.start(); } super.serviceStart(); }
/** * Stop the thread that does the node resource utilization monitoring. */ @Override protected void serviceStop() throws Exception { if (this.isEnabled()) { this.monitoringThread.interrupt(); try { this.monitoringThread.join(10 * 1000); } catch (InterruptedException e) { LOG.warn("Could not wait for the thread to join"); } } super.serviceStop(); }
/** * Stop the thread that does the node resource utilization monitoring. */ @Override protected void serviceStop() throws Exception { if (this.isEnabled()) { this.monitoringThread.interrupt(); try { this.monitoringThread.join(10 * 1000); } catch (InterruptedException e) { LOG.warn("Could not wait for the thread to join"); } } super.serviceStop(); }