public void shutdown() { assert state == MODULE_RUNNING; close(); setExitRequested(true); doNotifyAll(); try { processingThread.join(); restarterThread.join(); } catch (InterruptedException e) { logger.info(e); } logger.info("Module shut down."); state = MODULE_OFFLINE; }
public void shutdown() { assert state == MODULE_RUNNING; close(); setExitRequested(true); doNotifyAll(); try { processingThread.join(); restarterThread.join(); } catch (InterruptedException e) { logger.info(e); } logger.info("Module shut down."); state = MODULE_OFFLINE; }
public synchronized void startup() throws Exception { assert state == MODULE_OFFLINE; setExitRequested(false); open(); setNeedToRestart(false); logger = MaryUtils.getLogger(name()); logger.info("Module started (" + inputType() + "->" + outputType() + ", locale " + getLocale() + ")."); state = MODULE_RUNNING; }
public synchronized void startup() throws Exception { assert state == MODULE_OFFLINE; setExitRequested(false); open(); setNeedToRestart(false); logger = MaryUtils.getLogger(name()); logger.info("Module started (" + inputType() + "->" + outputType() + ", locale " + getLocale() + ")."); state = MODULE_RUNNING; }
public void shutdown() { assert state == MODULE_RUNNING; close(); setExitRequested(true); doNotifyAll(); try { processingThread.join(); restarterThread.join(); } catch (InterruptedException e) { logger.info(e); } logger.info("Module shut down."); state = MODULE_OFFLINE; }
public synchronized void startup() throws Exception { assert state == MODULE_OFFLINE; setExitRequested(false); open(); setNeedToRestart(false); logger = MaryUtils.getLogger(name()); logger.info("Module started (" + inputType() + "->" + outputType() + ", locale " + getLocale() + ")."); state = MODULE_RUNNING; }