Project

General

Profile

« Previous | Next » 

Revision f4142aa7

Added by Cherian Mathew almost 9 years ago

cdmlib-ehcache : removed disk based cache manager since the hb config is now cached in memory
CdmApplicationRemoteController, CdmModelCacher, CdmRemoteCacheManager, CdmModelGetMethodCacherTest : running the hibernate config load in separate thread
CdmTransientEntityCacher, EntityCacherDebugResult, CdmStore, SessionsViewPart: refactoring
httpInvokerServiceClients.xml : removed lazy loading of beans

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/sessions/SessionsViewPart.java
13 13
import java.util.Collection;
14 14

  
15 15
import net.sf.ehcache.Cache;
16
import net.sf.ehcache.CacheManager;
16 17
import net.sf.ehcache.statistics.LiveCacheStatistics;
17 18

  
18 19
import org.eclipse.jface.action.IMenuManager;
......
277 278
        }
278 279

  
279 280
        CdmRemoteCacheManager instance = CdmRemoteCacheManager.getInstance();
280
        int cdmEnityCacheSize = instance.getDefaultCacheManager().getCacheNames().length;
281
        int cdmEnityCacheSize = CacheManager.create().getCacheNames().length;
281 282
        txtNoOfCaches.setText(String.valueOf(cdmEnityCacheSize));
282 283

  
283
        Cache defaultCache = instance.getDefaultCacheManager().getCache(CdmCacher.DEFAULT_CACHE_NAME);
284
        Cache defaultCache = CacheManager.create().getCache(CdmCacher.DEFAULT_CACHE_NAME);
284 285
        txtDefaultInMemory.setText("");
285 286
        txtDefaultOnDisk.setText("");
286 287
        if(defaultCache != null) {

Also available in: Unified diff