List of usage examples for org.apache.commons.jcs.engine.control CompositeCacheManager getInstance
public static synchronized CompositeCacheManager getInstance() throws CacheException
From source file:org.mkosem.impl.JCSCache.java
@Override public void destroy() { try {//from www. j a v a2s .c o m cache_.clear(); cache_.dispose(); CompositeCacheManager.getInstance().shutDown(); } catch (CacheException e) { e.printStackTrace(); } }
From source file:org.openstreetmap.josm.plugins.openstreetcam.cache.CacheManager.java
/** * Removes all the photos associated with the given sequence identifier. * * @param sequenceId the identifier of the sequence to which the photo belongs *///from w ww . j ava 2 s .co m public void removePhotos(final Long sequenceId) { final Set<Object> keySet = CompositeCacheManager.getInstance().getCache(CACHE_NAME).getKeySet(); for (final Object key : keySet) { if (((Key) key).getSequenceId().equals(sequenceId)) { cache.remove((Key) key); } } }
From source file:org.tinygroup.cache.jcs.applicationprocessor.JcsCacheProcessor.java
public void stop() { if (enable) { LOGGER.logMessage(LogLevel.INFO, "Shutting down remote cache "); CompositeCacheManager.getInstance().shutDown(); LOGGER.logMessage(LogLevel.INFO, "jcscacheplugin is stopped"); }// ww w .ja v a 2s . c o m }
From source file:org.tinygroup.cache.jcs.JcsCacheManager.java
private JcsCacheManager() { this(CompositeCacheManager.getInstance()); }