[jboss-cvs] JBossAS SVN: r98052 - in projects/cluster/ha-server-cache-jbc/trunk: src/test and 4 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Dec 20 22:16:43 EST 2009


Author: bstansberry at jboss.com
Date: 2009-12-20 22:16:42 -0500 (Sun, 20 Dec 2009)
New Revision: 98052

Added:
   projects/cluster/ha-server-cache-jbc/trunk/src/test/java/org/jboss/ha/
   projects/cluster/ha-server-cache-jbc/trunk/src/test/java/org/jboss/ha/cachemanager/
   projects/cluster/ha-server-cache-jbc/trunk/src/test/java/org/jboss/ha/cachemanager/DependencyInjectedConfigurationRegistryParsingUnitTestCase.java
   projects/cluster/ha-server-cache-jbc/trunk/src/test/resources/
   projects/cluster/ha-server-cache-jbc/trunk/src/test/resources/jboss-cache-configs.xml
Modified:
   projects/cluster/ha-server-cache-jbc/trunk/pom.xml
Log:
[JBCLUSTER-246] Add parsing test

Modified: projects/cluster/ha-server-cache-jbc/trunk/pom.xml
===================================================================
--- projects/cluster/ha-server-cache-jbc/trunk/pom.xml	2009-12-21 03:12:28 UTC (rev 98051)
+++ projects/cluster/ha-server-cache-jbc/trunk/pom.xml	2009-12-21 03:16:42 UTC (rev 98052)
@@ -236,6 +236,13 @@
       <scope>test</scope>
     </dependency>
     
+    <dependency>
+      <groupId>commons-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <version>1.1.0.jboss</version>
+      <scope>test</scope>
+    </dependency>
+    
   </dependencies>   
   
   <reporting>

Added: projects/cluster/ha-server-cache-jbc/trunk/src/test/java/org/jboss/ha/cachemanager/DependencyInjectedConfigurationRegistryParsingUnitTestCase.java
===================================================================
--- projects/cluster/ha-server-cache-jbc/trunk/src/test/java/org/jboss/ha/cachemanager/DependencyInjectedConfigurationRegistryParsingUnitTestCase.java	                        (rev 0)
+++ projects/cluster/ha-server-cache-jbc/trunk/src/test/java/org/jboss/ha/cachemanager/DependencyInjectedConfigurationRegistryParsingUnitTestCase.java	2009-12-21 03:16:42 UTC (rev 98052)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat, Inc. and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ha.cachemanager;
+
+import java.util.Set;
+
+import junit.framework.TestCase;
+
+import org.jboss.cache.config.Configuration;
+
+/**
+ * Test XML parsing done by DependencyInjectedConfigurationRegistry.
+ * 
+ * @author Brian Stansberry
+ * @version $Revision: 1.1 $
+ */
+public class DependencyInjectedConfigurationRegistryParsingUnitTestCase extends TestCase
+{
+   public void testXMLParsing() throws Exception
+   {
+      DependencyInjectedConfigurationRegistry testee = new DependencyInjectedConfigurationRegistry();
+      testee.setConfigResource("jboss-cache-configs.xml");
+      testee.start();
+      Set<String> configNames = testee.getConfigurationNames();
+      assertEquals(17, configNames.size());
+      for (String name : configNames)
+      {
+         Configuration config = testee.getConfiguration(name);
+         assertNotNull(config);
+         assertEquals(name + " has correct timeout", 15000, config.getLockAcquisitionTimeout());
+      }
+   }
+}

Added: projects/cluster/ha-server-cache-jbc/trunk/src/test/resources/jboss-cache-configs.xml
===================================================================
--- projects/cluster/ha-server-cache-jbc/trunk/src/test/resources/jboss-cache-configs.xml	                        (rev 0)
+++ projects/cluster/ha-server-cache-jbc/trunk/src/test/resources/jboss-cache-configs.xml	2009-12-21 03:16:42 UTC (rev 98052)
@@ -0,0 +1,421 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<cache-configs xmlns="urn:jboss:jbosscache-core:cache-repo:3.2">
+
+    <!-- 
+       JBoss Cache configurations using the standard JBC 3.x config format
+       can be added to this file, and will usable by the AS's CacheManager
+       if the "configResource" property in the jboss-cache-manager-jboss-beans.xml
+       file's "CacheConfigurationRegistry" bean is uncommented. (It is
+       commented out by default.)
+       However, use of the microcontainer config format used in this
+       sar's jboss-cache-manager-jboss-beans.xml file is recommended.
+    -->
+    
+    <cache-config name="standard-session-cache">   
+	    <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="pessimistic" useLockStriping="false"/>
+       <transaction transactionManagerLookupClass="org.jboss.cache.transaction.BatchModeTransactionManagerLookup"/>
+       <serialization useRegionBasedMarshalling="false"/>
+       <startup regionsInactiveOnStartup="false"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-SessionCache" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <!-- Choose sync or async -->
+         <async serializationExecutorPoolSize="0"/>
+         <!-- <sync replTimeout="17500"/> -->
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       
+       <buddy enabled="false" poolName="default" communicationTimeout="17500">
+          <dataGravitation auto="false" removeOnFind="true" searchBackupTrees="true"/>
+          <locator>
+          <properties>
+             numBuddies=1
+             ignoreColocatedBuddies=true
+          </properties>
+          </locator>
+       </buddy>
+       
+       <loaders passivation="true" shared="false">
+          <loader class="org.jboss.cache.loader.FileCacheLoader" async="false" 
+             fetchPersistentState="true" purgeOnStartup="true">
+             <properties>
+             location=${jboss.server.data.dir}${/}session
+             ignoreModifications=false
+             checkCharacterPortability=false
+             </properties>
+          </loader>
+       </loaders> 
+    </cache-config>
+    
+    <cache-config name="field-granularity-session-cache">
+       <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="pessimistic" useLockStriping="false"/>
+       <transaction transactionManagerLookupClass="org.jboss.cache.transaction.BatchModeTransactionManagerLookup"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-FieldSessionCache" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <!-- Choose sync or async -->
+         <async serializationExecutorPoolSize="0"/>
+         <!-- <sync replTimeout="17500"/> -->
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       
+       <buddy enabled="false" poolName="default" communicationTimeout="17500">
+          <dataGravitation auto="false" removeOnFind="true" searchBackupTrees="true"/>
+          <locator>
+          <properties>
+             numBuddies=1
+             ignoreColocatedBuddies=true
+          </properties>
+          </locator>
+       </buddy>
+       
+       <loaders passivation="true" shared="false">
+          <loader class="org.jboss.cache.loader.FileCacheLoader" async="false" 
+             fetchPersistentState="true" purgeOnStartup="true">
+             <properties>
+             location=${jboss.server.data.dir}${/}field-session
+             ignoreModifications=false
+             checkCharacterPortability=false
+             </properties>
+          </loader>
+       </loaders>
+    </cache-config>
+    
+    <cache-config name="sfsb-cache">
+       <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="pessimistic" useLockStriping="false"/>
+       <transaction transactionManagerLookupClass="org.jboss.cache.transaction.BatchModeTransactionManagerLookup"/>
+       <serialization useRegionBasedMarshalling="false"/>
+       <startup regionsInactiveOnStartup="false"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-SFSBCache" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <!-- Choose sync or async -->
+         <async serializationExecutorPoolSize="0"/>
+         <!-- <sync replTimeout="17500"/> -->
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       
+       <buddy enabled="false" poolName="default" communicationTimeout="17500">
+          <dataGravitation auto="false" removeOnFind="true" searchBackupTrees="true"/>
+          <locator>
+          <properties>
+             numBuddies=1
+             ignoreColocatedBuddies=true
+          </properties>
+          </locator>
+       </buddy>
+       
+       <loaders passivation="true" shared="false">
+          <loader class="org.jboss.cache.loader.FileCacheLoader" async="false" 
+             fetchPersistentState="true" purgeOnStartup="true">
+             <properties>
+             location=${jboss.server.data.dir}${/}sfsb
+             ignoreModifications=false
+             checkCharacterPortability=false
+             </properties>
+          </loader>
+       </loaders>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="ha-partition">
+         <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="pessimistic" useLockStriping="false"/>
+       <transaction transactionManagerLookupClass="org.jboss.cache.transaction.BatchModeTransactionManagerLookup"/>
+       <serialization useRegionBasedMarshalling="false"/>
+       <startup regionsInactiveOnStartup="false"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-HAPartitionCache" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <!-- Choose sync or async -->
+         <async serializationExecutorPoolSize="0"/>
+         <!-- <sync replTimeout="17500"/> -->
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+    </cache-config>
+    
+    <cache-config name="mvcc-entity">  
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="mvcc" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-mvcc-entity" mode="invalidation">
+         <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="optimistic-entity"> 
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="optimistic" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-opt-entity" mode="invalidation">
+         <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="pessimistic-entity">
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="pessimistic" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-pess-entity" mode="invalidation">
+         <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="mvcc-entity-repeatable">
+       <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="mvcc" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-mvcc-entity-rr" mode="invalidation">
+         <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="pessimistic-entity-repeatable">
+       <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="pessimistic" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-pess-entity-rr" mode="invalidation">
+         <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="local-query">   
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="mvcc" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="replicated-query">
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="mvcc" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-query" mode="replication">
+         <stateRetrieval fetchInMemoryState="false" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <async serializationExecutorPoolSize="0"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="timestamps-cache">
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="mvcc" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-timestamps" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <async serializationExecutorPoolSize="0"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+    </cache-config>
+    
+    <cache-config name="mvcc-shared">
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="mvcc" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-mvcc-shared" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="optimistic-shared">
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="optimistic" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-opt-shared" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="pessimistic-shared">
+       <locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="pessimistic" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-pess-shared" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="mvcc-shared-repeatable">
+       <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="mvcc" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-mvcc-shared-rr" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+    <cache-config name="pessimistic-shared-repeatable">
+       <locking isolationLevel="REPEATABLE_READ" lockAcquisitionTimeout="15000" 
+             nodeLockingScheme="pessimistic" useLockStriping="false"/>
+       <serialization useRegionBasedMarshalling="true"/>
+       <startup regionsInactiveOnStartup="true"/>
+       <clustering clusterName="${jboss.partition.name:DefaultPartition}-pess-shared-rr" mode="replication">
+         <stateRetrieval fetchInMemoryState="true" timeout="60000"/>
+         <jgroupsConfig multiplexerStack="${jboss.default.jgroups.stack:udp}"/>
+         <sync replTimeout="17500"/>
+       </clustering>
+       <listeners asyncPoolSize="0"/>
+       <jmxStatistics enabled="true"/>
+       <eviction wakeUpInterval="5000">
+          <default algorithmClass="org.jboss.cache.eviction.LRUAlgorithm">
+             <property name="maxNodes">10000</property>
+             <property name="timeToLiveSeconds">1000</property>
+             <property name="minTimeToLiveSeconds">120</property>
+          </default>
+          <region name="/TS" algorithmClass="org.jboss.cache.eviction.NullEvictionAlgorithm"/>
+       </eviction>
+    </cache-config>
+    
+</cache-configs>




More information about the jboss-cvs-commits mailing list