@Dispose(order = 10) public void stop() { // We are nice and stop the persist service at the end... persistService.stop(); }
@Override public void stop() { persistService.stop(); } }
@Override public void destroy() { persistService.stop(); }
@Override public void destroy() { persistService.stop(); }
@Override public void close() throws IOException { try { jpaService.stop(); } catch(Throwable t) { log.debug("Jpa service has already been stopped."); } }
@Override public void configurationNotFound() { try { log.debug("No persistence configuration found. Making sure jpa service is not running."); jpaService.stop(); } catch(Throwable t) { log.debug("Jpa service has already been stopped."); } }
@Override protected void shutDown() throws Exception { LOGGER.info("stopping persistence"); try { persistService.stop(); } catch (Exception e) { LOGGER.warn("error stopping database", e); } } }
/** * Stop {@link PersistService} * @see <a href="https://github.com/xvik/guice-persist-orient#lifecycle">Lifecycle of guice-persist-orient</a> * @param application Wicket application */ @Override public void destroy(Application application) { OrienteerWebApplication app = (OrienteerWebApplication) application; PersistService persistService = app.getServiceInstance(PersistService.class); persistService.stop(); } }
eventBus.post(new ImportFinishedEvent(allErrors)); persistService.stop();
try { log.debug("Stopping jpa service..."); jpaService.stop(); } catch(Throwable t) { log.trace("Jpa service has already been stopped.", t);
@AfterClass public static void tearDown() throws Exception { if (GuicedTest.injector != null) { try { GuicedTest.injector.getInstance(PersistService.class).stop(); GuicedTest.injector.getInstance(ExecutionScope.class).leave(); } catch (final IllegalStateException ignore) { // was already closed, ignore this } GuicedTest.injector = null; } } }
/** * Stops the system. */ @Override protected void doStop() { try { _dispose(_serviceFactory.getWardenService()); _dispose(_serviceFactory.getMonitorService()); _dispose(_serviceFactory.getSchedulingService()); _dispose(_serviceFactory.getGlobalInterlockService()); _dispose(_serviceFactory.getMQService()); _dispose(_serviceFactory.getSchemaService()); _dispose(_serviceFactory.getTSDBService()); _dispose(_serviceFactory.getCacheService()); _dispose(_serviceFactory.getHistoryService()); _persistService.stop(); _log.info("{} stopped.", getName()); } catch (Exception ex) { _log.error(getName() + " shutdown aborted.", ex); } }
/** * Stops the system. */ @Override protected void doStop() { try { _dispose(_serviceFactory.getWardenService()); _dispose(_serviceFactory.getMonitorService()); _dispose(_serviceFactory.getSchedulingService()); _dispose(_serviceFactory.getGlobalInterlockService()); _dispose(_serviceFactory.getMQService()); _dispose(_serviceFactory.getSchemaService()); _dispose(_serviceFactory.getTSDBService()); _dispose(_serviceFactory.getCacheService()); _dispose(_serviceFactory.getHistoryService()); _persistService.stop(); _log.info("{} stopped.", getName()); } catch (Exception ex) { _log.error(getName() + " shutdown aborted.", ex); } }