Revision 041b822c
Added by Andreas Müller over 3 years ago
cdmlib-cache/src/main/java/eu/etaxonomy/cdm/cache/CdmTransientEntityCacher.java | ||
---|---|---|
31 | 31 |
import net.sf.ehcache.config.CacheConfiguration; |
32 | 32 |
import net.sf.ehcache.config.SizeOfPolicyConfiguration; |
33 | 33 |
import net.sf.ehcache.management.ManagementService; |
34 |
import net.sf.ehcache.statistics.LiveCacheStatistics;
|
|
34 |
import net.sf.ehcache.statistics.FlatStatistics;
|
|
35 | 35 |
|
36 | 36 |
/** |
37 | 37 |
* This cache handles transient (id>0) and volatile (id=0) CdmBase objects. |
... | ... | |
127 | 127 |
.overflowToOffHeap(false); |
128 | 128 |
} |
129 | 129 |
|
130 |
public LiveCacheStatistics getCacheStatistics() {
|
|
130 |
public FlatStatistics getCacheStatistics() {
|
|
131 | 131 |
if(cache.getStatus() == Status.STATUS_ALIVE) { |
132 |
return cache.getLiveCacheStatistics();
|
|
132 |
return cache.getStatistics(); |
|
133 | 133 |
} |
134 | 134 |
return null; |
135 | 135 |
} |
Also available in: Unified diff
ref #9207 adapt CdmTransientEntityCacher to new ehcache version