Matt Ward d9c11a7ca7 Merged BRANCHES/DEV/mward/head_cachestats to HEAD:
89575: ACE-3327: Work In Progress. TX cache statistics.
   89642: ACE-3327: Exposes statistics through JMX. Adds hit ratio.
   89649: ACE-3327: Added "@since 5.0" to new classes.
   89691: ACE-3327: improved TransactionalCache stats tests.
   89743: ACE-3327: fixed lack of thread safety for InMemoryCacheStatistics.
   89752: ACE-3327: now possible to disable/enable tx cache statistics per-cache with properties.



git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@89798 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2014-11-03 18:08:50 +00:00

32 lines
1.5 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<!-- sample bean configuration to test cache configurations -->
<beans>
<bean name="objectCache" class="org.alfresco.repo.cache.DefaultSimpleCache" />
<bean name="backingCache" class="org.alfresco.repo.cache.SerializingSimpleCache" />
<bean name="cacheStatistics" class="org.alfresco.repo.cache.InMemoryCacheStatistics"/>
<bean name="transactionalCache" class="org.alfresco.repo.cache.TransactionalCache">
<property name="sharedCache"><ref bean="backingCache" /></property>
<property name="name"><value>transactionalCache</value></property>
<property name="maxCacheSize"><value>200000</value></property>
<property name="cacheStats" ref="cacheStatistics"/>
<property name="cacheStatsEnabled" value="true"/>
</bean>
<bean name="backingCacheNoStats" class="org.alfresco.repo.cache.SerializingSimpleCache" />
<bean name="transactionalCacheNoStats" class="org.alfresco.repo.cache.TransactionalCache">
<property name="sharedCache"><ref bean="backingCacheNoStats" /></property>
<property name="name"><value>transactionalCacheNoStats</value></property>
<property name="maxCacheSize"><value>200000</value></property>
<property name="cacheStats" ref="cacheStatistics"/>
<property name="cacheStatsEnabled" value="false"/>
</bean>
</beans>