@Override public void run() { hostsList.stop(); if(hostsList.getRenderer() != null) hostsList.getRenderer().finish(); } };
private void stop() { hostsList.stop(); Thread.yield(); // We don't care if it failed, just try try { if(shutDownHook != null) Runtime.getRuntime().removeShutdownHook(shutDownHook); } catch (Exception e1) { } // Everything is stopped, wait for collect termination try { for(Timer t: hostsList.getTimers()) { t.lockCollect(); } for(Timer t: hostsList.getTimers()) { // Release it, it will not restart t.releaseCollect(); } } catch (InterruptedException e) { Thread.currentThread().interrupt(); } for(StoreFactory sf: propertiesManager.stores.values()) { sf.stop(); } if(hostsList.getRenderer() != null) { hostsList.getRenderer().finish(); } propertiesManager.defaultStore.stop(); }