protected NodeResourceMonitor createNodeResourceMonitor() { return new NodeResourceMonitorImpl(context); }
/** * Start the thread that does the node resource utilization monitoring. */ @Override protected void serviceStart() throws Exception { if (this.isEnabled()) { this.monitoringThread.start(); } super.serviceStart(); }
/** * Get the utilization of the node. This includes the containers. * @return Resource utilization of the node. */ private ResourceUtilization getNodeUtilization() { NodeResourceMonitorImpl nodeResourceMonitor = (NodeResourceMonitorImpl) this.context.getNodeResourceMonitor(); return nodeResourceMonitor.getUtilization(); }
/** * Start the thread that does the node resource utilization monitoring. */ @Override protected void serviceStart() throws Exception { if (this.isEnabled()) { this.monitoringThread.start(); } super.serviceStart(); }
/** * Get the utilization of the node. This includes the containers. * @return Resource utilization of the node. */ private ResourceUtilization getNodeUtilization() { NodeResourceMonitorImpl nodeResourceMonitor = (NodeResourceMonitorImpl) this.context.getNodeResourceMonitor(); return nodeResourceMonitor.getUtilization(); }
protected NodeResourceMonitor createNodeResourceMonitor() { return new NodeResourceMonitorImpl(); }
/** * 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(); }
protected NodeResourceMonitor createNodeResourceMonitor() { return new NodeResourceMonitorImpl(); }
/** * 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(); }
protected NodeResourceMonitor createNodeResourceMonitor() { return new NodeResourceMonitorImpl(); }