eu.etaxonomy.taxeditor.cdmlib/lib/dozer-5.3.0.jar -text
eu.etaxonomy.taxeditor.cdmlib/lib/easymock-3.1.jar -text
eu.etaxonomy.taxeditor.cdmlib/lib/easymockclassextension-2.3.jar -text
-eu.etaxonomy.taxeditor.cdmlib/lib/ehcache-core-2.6.9.jar -text
eu.etaxonomy.taxeditor.cdmlib/lib/ezmorph-1.0.6.jar -text
eu.etaxonomy.taxeditor.cdmlib/lib/fop-1.1.jar -text
eu.etaxonomy.taxeditor.cdmlib/lib/google-api-translate-java-0.92.jar -text
eu.etaxonomy.taxeditor.cdmlib/lib/apache-log4j-extras-1.2.17.jar
eu.etaxonomy.taxeditor.cdmlib/lib/antlr-2.*.jar
eu.etaxonomy.taxeditor.cdmlib/lib/cglib-nodep-3.*.jar
+eu.etaxonomy.taxeditor.cdmlib/lib/ehcache-2.*.jar
lib/commons-pool-1.5.4.jar,
lib/dom4j-1.6.1.jar,
lib/dtd-parser-1.1.jar,
- lib/ehcache-core-2.6.11.jar,
+ lib/ehcache-2.10.6.jar,
lib/ezmorph-1.0.6.jar,
lib/google-api-translate-java-0.92.jar,
lib/h2-1.4.190.jar,
lib/commons-pool-1.5.4.jar,\
lib/dom4j-1.6.1.jar,\
lib/dtd-parser-1.1.jar,\
- lib/ehcache-core-2.6.11.jar,\
+ lib/ehcache-2.10.6.jar,\
lib/ezmorph-1.0.6.jar,\
lib/google-api-translate-java-0.92.jar,\
lib/h2-1.4.190.jar,\
httpclient,JavaAPIforKml,iiif-apis,commons-beanutils,commons-lang3,commons-lang,commons-codec,\r
commons-imaging,jackson-databind,jackson-annotations,jackson-core,jboss-logging,\r
validation-api,classmate,javax.el-api,slf4j-api,slf4j-log4j12,\r
+ ehcache,\r
hibernate-validator,hibernate-validator-cdi,\r
spring-context,spring-context-support,spring-aspects,spring-test,spring-beans,\r
spring-tx,spring-web,spring-core,spring-aop,spring-expression,spring-orm,\r
<version>${cdmlib.version}</version>\r
</dependency>\r
\r
+ <!-- required -->\r
+ <dependency>\r
+ <groupId>net.sf.ehcache</groupId>\r
+ <artifactId>ehcache</artifactId>\r
+ <version>2.10.6</version>\r
+ </dependency>\r
+ \r
<!-- needed, but should try to remove -->\r
<dependency>\r
<!-- see #9205 for how to remove -->\r
import eu.etaxonomy.cdm.persistence.dao.initializer.IBeanInitializer;
import eu.etaxonomy.cdm.persistence.dto.MergeResult;
import eu.etaxonomy.taxeditor.remoting.cache.ConversationalTransientEntityCacher;
-import net.sf.ehcache.statistics.LiveCacheStatistics;
+import net.sf.ehcache.statistics.FlatStatistics;
/**
* NOTE : It would be nice to have this class performing merge / delete operations
}
@Override
- public LiveCacheStatistics getCacheStatistics() {
+ public FlatStatistics getCacheStatistics() {
return cdmTransientEntityCacher.getCacheStatistics();
}
import eu.etaxonomy.cdm.cache.EntityCacherDebugResult;
import eu.etaxonomy.cdm.model.common.CdmBase;
import eu.etaxonomy.cdm.persistence.dto.MergeResult;
-import net.sf.ehcache.statistics.LiveCacheStatistics;
+import net.sf.ehcache.statistics.FlatStatistics;
public interface ICdmEntitySession {
public ICdmEntitySessionEnabled getOwner();
- public LiveCacheStatistics getCacheStatistics();
+ public FlatStatistics getCacheStatistics();
public <O extends Object> O load(O obj, boolean update);
import eu.etaxonomy.cdm.cache.EntityCacherDebugResult;
import eu.etaxonomy.cdm.model.common.CdmBase;
import eu.etaxonomy.cdm.persistence.dto.MergeResult;
-import net.sf.ehcache.statistics.LiveCacheStatistics;
+import net.sf.ehcache.statistics.FlatStatistics;
/**
* @author cmathew
}
@Override
- public LiveCacheStatistics getCacheStatistics() {
+ public FlatStatistics getCacheStatistics() {
return null;
}
import eu.etaxonomy.cdm.persistence.dto.MergeResult;
import eu.etaxonomy.taxeditor.session.ICdmEntitySession;
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
-import net.sf.ehcache.statistics.LiveCacheStatistics;
+import net.sf.ehcache.statistics.FlatStatistics;
/**
* @author cmathew
}
@Override
- public LiveCacheStatistics getCacheStatistics() {
+ public FlatStatistics getCacheStatistics() {
return null;
}
*/
package eu.etaxonomy.taxeditor.view.sessions;
+import java.awt.Checkbox;
import java.util.List;
import org.eclipse.jface.viewers.ILabelProvider;
protected Shell shlInspectSessions;
private Text txtDebugInfo;
private Label lblDebugInformation;
+ private Checkbox chkIncludeIgnored;
private final Cache cdmlibModelCache;
import eu.etaxonomy.taxeditor.store.CdmStore;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
-import net.sf.ehcache.statistics.LiveCacheStatistics;
+import net.sf.ehcache.statistics.FlatStatistics;
/**
* @author cmathew
txtDefaultInMemory.setText("");
txtDefaultOnDisk.setText("");
if(defaultCache != null) {
- LiveCacheStatistics liveCacheStatistics = defaultCache.getLiveCacheStatistics();
+ FlatStatistics liveCacheStatistics = defaultCache.getStatistics();
txtDefaultInMemory.setText(getInMemoryStats(liveCacheStatistics));
txtDefaultOnDisk.setText(getOnDiskStats(liveCacheStatistics));
}
txtCdmModelInMemory.setText("");
txtCdmModelOnDisk.setText("");
if(cdmModelGetMethodsCache != null) {
- LiveCacheStatistics liveCacheStatistics = cdmModelGetMethodsCache.getLiveCacheStatistics();
+ FlatStatistics liveCacheStatistics = cdmModelGetMethodsCache.getStatistics();
txtCdmModelInMemory.setText(getInMemoryStats(liveCacheStatistics));
txtCdmModelOnDisk.setText(getOnDiskStats(liveCacheStatistics));
}
}
}
item.setText(0, activePrefix + sessionOwnerString);
- LiveCacheStatistics cacheStatistics = session.getCacheStatistics();
+ FlatStatistics cacheStatistics = session.getCacheStatistics();
item.setText(1, getInMemoryStats(cacheStatistics));
item.setText(2, getOnDiskStats(cacheStatistics));
}
- private String getInMemoryStats(LiveCacheStatistics statistics) {
+ private String getInMemoryStats(FlatStatistics statistics) {
if(statistics != null) {
long localHeapSize = statistics.getLocalHeapSize();
return "";
}
- private String getOnDiskStats(LiveCacheStatistics statistics) {
+ private String getOnDiskStats(FlatStatistics statistics) {
if(statistics != null) {
long localDiskSize = statistics.getLocalDiskSize();