public void purge() { _effectsScheduledThreadPool.purge(); _generalScheduledThreadPool.purge(); _aiScheduledThreadPool.purge(); _ioPacketsThreadPool.purge(); _generalPacketsThreadPool.purge(); _generalThreadPool.purge(); }
/** Try and stop any action */ public void stop() { // tell the listenee (upstream bean) to stop if (m_listenee instanceof BeanCommon) { // System.err.println("Listener is BeanCommon"); ((BeanCommon) m_listenee).stop(); } if (m_tasks != null) { for (EvaluationTask t : m_tasks) { t.setStopped(); } } m_tasks = null; m_visual.setStatic(); m_setsComplete = 0; // shutdown the executor pool and reclaim storage if (m_executorPool != null) { m_executorPool.shutdownNow(); m_executorPool.purge(); m_executorPool = null; } // stop the evaluate thread /* if (m_evaluateThread != null) { m_evaluateThread.interrupt(); m_evaluateThread.stop(); m_evaluateThread = null; m_visual.setStatic(); } */ }
public void clear() { executor.purge(); }