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
This commit is contained in:
Matt Ward
2014-11-03 18:08:50 +00:00
parent 6eb2e63663
commit d9c11a7ca7
14 changed files with 1333 additions and 55 deletions

View File

@@ -8,10 +8,25 @@
<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>