public void shutDown() { manager.shutDown(); }
/** Release the cache manager. */ @Override public void destroy() { if ( log.isInfoEnabled() ) { log.info( "Servlet Destroyed, shutting down JCS." ); } cacheMgr.shutDown(); }
/** Release the cache manager. */ @Override public void destroy() { if ( log.isInfoEnabled() ) { log.info( "Servlet Destroyed, shutting down JCS." ); } cacheMgr.shutDown(); }
@Override public void shutdown() { if (manager.isInitialized()) { LOGGER.debug("Shutting down JCS cache service..."); manager.shutDown(); } }
/** * Shut down the cache manager and set the instance to null */ public static void shutdown() { synchronized ( JCS.class ) { if ( cacheMgr != null && cacheMgr.isInitialized()) { cacheMgr.shutDown(); } cacheMgr = null; } }
/** * This will persist the keys on shutdown. * <p> * @see java.lang.Thread#run() */ @SuppressWarnings("synthetic-access") @Override public void run() { if ( isInitialized() ) { log.info( "Shutdown hook activated. Shutdown was not called. Shutting down JCS." ); shutDown(); } } }
/** * This will persist the keys on shutdown. * <p> * @see java.lang.Thread#run() */ @SuppressWarnings("synthetic-access") @Override public void run() { if ( isInitialized() ) { log.info( "Shutdown hook activated. Shutdown was not called. Shutting down JCS." ); shutDown(); } } }
/** * shuts the cache down. */ @Override public void destroy() { super.destroy(); log.info( "Shutting down remote cache " ); try { CompositeCacheManager.getInstance().shutDown(); } catch (CacheException e) { log.error("Could not retrieve cache manager instance", e); } } }
/** * This gets the singleton instance of the CompositeCacheManager and calls shutdown. * <p> * @see javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletContextEvent) */ @Override public void contextDestroyed( ServletContextEvent arg0 ) { if ( log.isInfoEnabled() ) { log.info( "contextDestroyed, shutting down JCS." ); } try { CompositeCacheManager.getInstance().shutDown(); } catch (CacheException e) { log.error( "Could not retrieve cache manager instance", e ); } } }
/** * @see junit.framework.TestCase#tearDown() */ @Override protected void tearDown() throws Exception { if (manager != null) { manager.shutDown(); } System.clearProperty(JCS_DEFAULT_CACHEATTRIBUTES_MAX_OBJECTS); super.tearDown(); }
/** * shuts the cache down. */ @Override public void destroy() { super.destroy(); log.info("Shutting down remote cache "); try { RemoteCacheServerFactory.shutdownImpl(registryHost, registryPort); } catch (IOException e) { log.error("Problem shutting down.", e); } try { CompositeCacheManager.getInstance().shutDown(); } catch (CacheException e) { log.error("Could not retrieve cache manager instance", e); } }
/** * @see junit.framework.TestCase#tearDown() */ @Override protected void tearDown() throws Exception { if (manager != null) { manager.shutDown(); } System.clearProperty(JCS_DEFAULT_CACHEATTRIBUTES_MAX_OBJECTS); super.tearDown(); }
this.cacheManager.shutDown();
@Override protected void setUp() throws Exception { super.setUp(); //First shut down any previously running manager. manager = CompositeCacheManager.getInstance(); manager.shutDown(); }
/** * @see junit.framework.TestCase#tearDown() */ @Override protected void tearDown() throws Exception { CompositeCacheManager.getInstance().shutDown(); }
public void stop() { if (enable) { LOGGER.logMessage(LogLevel.INFO, "Shutting down remote cache "); CompositeCacheManager.getInstance().shutDown(); LOGGER.logMessage(LogLevel.INFO, "jcscacheplugin is stopped"); } }
/** * Test tearDown. Dispose of the cache. */ @Override public void tearDown() { try { CompositeCacheManager cacheMgr = CompositeCacheManager.getInstance(); cacheMgr.shutDown(); } catch ( Exception e ) { // log.error(e); } }
/** * Test tearDown. Dispose of the cache. */ @Override public void tearDown() { try { CompositeCacheManager cacheMgr = CompositeCacheManager.getInstance(); cacheMgr.shutDown(); } catch ( Exception e ) { e.printStackTrace(); } } }
/** * Test tearDown. Dispose of the cache. */ @Override public void tearDown() { try { CompositeCacheManager cacheMgr = CompositeCacheManager.getInstance(); cacheMgr.shutDown(); } catch ( Exception e ) { e.printStackTrace(); } } }
/** * Test tearDown. Dispose of the cache. */ @Override public void tearDown() { try { CompositeCacheManager cacheMgr = CompositeCacheManager.getInstance(); cacheMgr.shutDown(); } catch ( Exception e ) { // log.error(e); } }