/** * Server is shutting down, so tell the JournalWriter to shut down. */ public void shutdown() throws ModuleShutdownException { try { writer.shutdown(); } catch (JournalException e) { throw new ModuleShutdownException("JournalWriter generated an error on shutdown()", role, e); } }
/** * Server is shutting down, so tell the JournalWriter to shut down. */ public void shutdown() throws ModuleShutdownException { try { writer.shutdown(); } catch (JournalException e) { throw new ModuleShutdownException("JournalWriter generated an error on shutdown()", role, e); } }
/** * Shutdown the RI module by closing the wrapped ResourceIndex. * * @throws ModuleShutdownException * if any error occurs while closing. */ @Override public void shutdownModule() throws ModuleShutdownException { if (_ri != null) { try { _ri.close(); } catch (TrippiException e) { throw new ModuleShutdownException("Error closing RI", getRole(), e); } } }
/** * Shutdown the RI module by closing the wrapped ResourceIndex. * * @throws ModuleShutdownException * if any error occurs while closing. */ @Override public void shutdownModule() throws ModuleShutdownException { if (_ri != null) { try { _ri.close(); } catch (TrippiException e) { throw new ModuleShutdownException("Error closing RI", getRole(), e); } } }
/** * Tell the thread, the reader and the log to shut down. */ public void shutdown() throws ModuleShutdownException { try { consumerThread.shutdown(); reader.shutdown(); recoveryLog.shutdown("Server is shutting down."); } catch (JournalException e) { throw new ModuleShutdownException("Error closing journal reader.", role, e); } }
/** * Tell the thread, the reader and the log to shut down. */ public void shutdown() throws ModuleShutdownException { try { consumerThread.shutdown(); reader.shutdown(); recoveryLog.shutdown("Server is shutting down."); } catch (JournalException e) { throw new ModuleShutdownException("Error closing journal reader.", role, e); } }
@Override public void shutdownModule() throws ModuleShutdownException { if(enabled()) { try { close(); } catch (MessagingException e) { throw new ModuleShutdownException(e.getMessage(), getRole(), e); } } }
@Override public void shutdownModule() throws ModuleShutdownException { if(enabled()) { try { close(); } catch (MessagingException e) { throw new ModuleShutdownException(e.getMessage(), getRole(), e); } } }