[jbosscache-commits] JBoss Cache SVN: r5252 - core/trunk/src/test/resources/META-INF/conf-test.

jbosscache-commits at lists.jboss.org jbosscache-commits at lists.jboss.org
Mon Jan 28 19:22:14 EST 2008


Author: mircea.markus
Date: 2008-01-28 19:22:13 -0500 (Mon, 28 Jan 2008)
New Revision: 5252

Added:
   core/trunk/src/test/resources/META-INF/conf-test/clonable-config-service.xml
Log:
fixed tests

Added: core/trunk/src/test/resources/META-INF/conf-test/clonable-config-service.xml
===================================================================
--- core/trunk/src/test/resources/META-INF/conf-test/clonable-config-service.xml	                        (rev 0)
+++ core/trunk/src/test/resources/META-INF/conf-test/clonable-config-service.xml	2008-01-29 00:22:13 UTC (rev 5252)
@@ -0,0 +1,261 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- 
+      Cache configuration file that attempts to utilize all known elements.
+      Intent here is not to create such a cache; rather it is to create
+      a Configuration and then see if that Configuration can be cloned.
+      Basically just for testing the clone() method of the various
+      configuration elements.
+-->
+
+<server>
+
+   <mbean code="org.jboss.cache.jmx.CacheJmxWrapper"
+          name="jboss.cache:service=testTreeCache">
+
+      <attribute name="TransactionManagerLookupClass">org.jboss.cache.transaction.GenericTransactionManagerLookup
+      </attribute>
+
+      <attribute name="NodeLockingScheme">OPTIMISTIC</attribute>
+      <attribute name="IsolationLevel">SERIALIZABLE</attribute>
+      <attribute name="CacheMode">INVALIDATION_SYNC</attribute>
+      
+      <attribute name="ClusterName">CloneCluster</attribute>
+      
+      <!-- Use both a stack name and a ClusterConfig so we can test both -->
+      <attribute name="MultiplexerStack">udp</attribute>      
+      <attribute name="ClusterConfig">
+         <config>
+            <UDP mcast_addr="228.10.10.10"
+                 mcast_port="45588"
+                 tos="8"
+                 ucast_recv_buf_size="20000000"
+                 ucast_send_buf_size="640000"
+                 mcast_recv_buf_size="25000000"
+                 mcast_send_buf_size="640000"
+                 loopback="false"
+                 discard_incompatible_packets="true"
+                 max_bundle_size="64000"
+                 max_bundle_timeout="30"
+                 use_incoming_packet_handler="true"
+                 ip_ttl="2"
+                 enable_bundling="false"
+                 enable_diagnostics="true"
+
+                 use_concurrent_stack="true"
+
+                 thread_naming_pattern="pl"
+
+                 thread_pool.enabled="true"
+                 thread_pool.min_threads="1"
+                 thread_pool.max_threads="25"
+                 thread_pool.keep_alive_time="30000"
+                 thread_pool.queue_enabled="true"
+                 thread_pool.queue_max_size="10"
+                 thread_pool.rejection_policy="Run"
+
+                 oob_thread_pool.enabled="true"
+                 oob_thread_pool.min_threads="1"
+                 oob_thread_pool.max_threads="4"
+                 oob_thread_pool.keep_alive_time="10000"
+                 oob_thread_pool.queue_enabled="true"
+                 oob_thread_pool.queue_max_size="10"
+                 oob_thread_pool.rejection_policy="Run"/>
+
+            <PING timeout="2000" num_initial_members="3"/>
+            <MERGE2 max_interval="30000" min_interval="10000"/>
+            <FD_SOCK/>
+            <FD timeout="10000" max_tries="5" shun="true"/>
+            <VERIFY_SUSPECT timeout="1500"/>
+            <pbcast.NAKACK
+                    use_mcast_xmit="false" gc_lag="0"
+                    retransmit_timeout="300,600,1200,2400,4800"
+                    discard_delivered_msgs="true"/>
+            <UNICAST timeout="300,600,1200,2400,3600"/>
+            <pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
+                           max_bytes="400000"/>
+            <pbcast.GMS print_local_addr="true" join_timeout="5000" shun="false"
+                        view_bundling="true" view_ack_collection_timeout="5000"/>
+            <FRAG2 frag_size="60000"/>
+            <pbcast.STREAMING_STATE_TRANSFER use_reading_thread="true"/>
+            <!-- <pbcast.STATE_TRANSFER/> -->
+            <pbcast.FLUSH timeout="0"/>
+         </config>
+      </attribute>
+
+      <attribute name="FetchInMemoryState">false</attribute>
+      <attribute name="StateRetrievalTimeout">3</attribute>
+      <attribute name="SyncReplTimeout">2</attribute>
+      <attribute name="LockAcquisitionTimeout">1</attribute>
+
+
+      <attribute name="BuddyReplicationConfig">
+         <config>
+            <buddyReplicationEnabled>true</buddyReplicationEnabled>
+            <buddyLocatorClass>org.jboss.cache.buddyreplication.NextMemberBuddyLocator</buddyLocatorClass>
+            <buddyLocatorProperties>
+               numBuddies = 11
+               ignoreColocatedBuddies = true
+            </buddyLocatorProperties>
+
+            <buddyPoolName>cloneGroup</buddyPoolName>
+            <buddyCommunicationTimeout>7</buddyCommunicationTimeout>
+
+            <autoDataGravitation>false</autoDataGravitation>
+            <dataGravitationRemoveOnFind>true</dataGravitationRemoveOnFind>
+            <dataGravitationSearchBackupTrees>true</dataGravitationSearchBackupTrees>
+
+         </config>
+      </attribute>
+      
+      <attribute name="EvictionPolicyConfig">
+         <config>
+            <attribute name="wakeUpIntervalSeconds">45</attribute>
+            <attribute name="eventQueueSize">4</attribute>
+            <attribute name="policyClass">org.jboss.cache.eviction.LRUPolicy</attribute>
+
+            <!-- Cache wide default -->
+            <region name="/_default_">
+               <attribute name="maxNodes">5000</attribute>
+               <attribute name="timeToLiveSeconds">1000</attribute>
+               <attribute name="maxAge">15000</attribute>
+            </region>
+            <region name="/fifo" policyClass="org.jboss.cache.eviction.FIFOPolicy">
+               <attribute name="maxNodes">5000</attribute>
+            </region>
+            <region name="/mru" policyClass="org.jboss.cache.eviction.MRUPolicy">
+               <attribute name="maxNodes">10000</attribute>
+            </region>
+            <region name="/lfu" policyClass="org.jboss.cache.eviction.LFUPolicy">
+               <attribute name="maxNodes">5000</attribute>
+               <attribute name="minNodes">4000</attribute>
+            </region>
+         </config>
+      </attribute>
+      
+      <attribute name="CacheLoaderConfig">
+         <config>
+            <!-- if passivation is true, only the first cache loader is used; the rest are ignored -->
+            <passivation>false</passivation>
+            <preload>/</preload>
+            <shared>true</shared>
+
+            <!-- we can now have multiple cache loaders, which get chained -->
+            <cacheloader>
+               <class>org.jboss.cache.loader.FileCacheLoader</class>
+               <properties>
+                  location=/tmp/FileCacheLoader
+               </properties>
+               <async>false</async>
+               <!-- only one cache loader in the chain may set fetchPersistentState to true.-->
+               <fetchPersistentState>true</fetchPersistentState>
+               <ignoreModifications>false</ignoreModifications>
+               <singletonStore>
+                  <enabled>false</enabled>
+                  <properties>
+                     pushStateWhenCoordinator=true
+                     pushStateWhenCoordinatorTimeout=5000
+                  </properties>
+               </singletonStore>
+            </cacheloader>
+            
+            <cacheloader>
+               <class>org.jboss.cache.loader.bdbje.BdbjeCacheLoader</class>
+               <properties>
+                  location=/tmp/BdbjeCacheLoader
+               </properties>
+               <async>false</async>
+               <!-- only one cache loader in the chain may set fetchPersistentState to true.-->
+               <fetchPersistentState>false</fetchPersistentState>
+               <ignoreModifications>false</ignoreModifications>
+               <singletonStore>
+                  <enabled>false</enabled>
+                  <properties>
+                     pushStateWhenCoordinator=true
+                     pushStateWhenCoordinatorTimeout=5000
+                  </properties>
+               </singletonStore>
+            </cacheloader>
+            
+            <cacheloader>
+               <class>org.jboss.cache.loader.jdbm.JdbmCacheLoader</class>
+               <properties>
+                  location=/tmp/JdbmCacheLoader
+               </properties>
+               <async>false</async>
+               <!-- only one cache loader in the chain may set fetchPersistentState to true.-->
+               <fetchPersistentState>false</fetchPersistentState>
+               <ignoreModifications>false</ignoreModifications>
+               <singletonStore>
+                  <enabled>false</enabled>
+                  <properties>
+                     pushStateWhenCoordinator=true
+                     pushStateWhenCoordinatorTimeout=5000
+                  </properties>
+               </singletonStore>
+            </cacheloader>
+            
+            <cacheloader>
+               <class>org.jboss.cache.loader.JDBCCacheLoader</class>
+               <properties>
+                  cache.jdbc.driver=com.foo.jdbc.Driver
+                  cache.jdbc.url=foo://driver
+                  cache.jdbc.user=sa
+                  cache.jdbc.password=secret
+               </properties>
+               <async>false</async>
+               <!-- only one cache loader in the chain may set fetchPersistentState to true.-->
+               <fetchPersistentState>false</fetchPersistentState>
+               <ignoreModifications>false</ignoreModifications>
+               <singletonStore>
+                  <enabled>false</enabled>
+                  <properties>
+                     pushStateWhenCoordinator=true
+                     pushStateWhenCoordinatorTimeout=5000
+                  </properties>
+               </singletonStore>
+            </cacheloader>
+            
+            <cacheloader>
+               <class>org.jboss.cache.loader.TcpDelegatingCacheLoader</class>
+               <properties>
+                  host=127.0.0.1\nport=12121
+               </properties>
+               <async>false</async>
+               <!-- only one cache loader in the chain may set fetchPersistentState to true.-->
+               <fetchPersistentState>false</fetchPersistentState>
+               <ignoreModifications>false</ignoreModifications>
+               <singletonStore>
+                  <enabled>false</enabled>
+                  <properties>
+                     pushStateWhenCoordinator=true
+                     pushStateWhenCoordinatorTimeout=5000
+                  </properties>
+               </singletonStore>
+            </cacheloader>
+            
+            <cacheloader>
+               <class>org.jboss.cache.loader.ClusteredCacheLoader</class>
+               <properties>
+                  timeout=500
+               </properties>
+               <async>false</async>
+               <!-- only one cache loader in the chain may set fetchPersistentState to true.-->
+               <fetchPersistentState>false</fetchPersistentState>
+               <ignoreModifications>false</ignoreModifications>
+               <singletonStore>
+                  <enabled>false</enabled>
+                  <properties>
+                     pushStateWhenCoordinator=true
+                     pushStateWhenCoordinatorTimeout=5000
+                  </properties>
+               </singletonStore>
+            </cacheloader>
+
+         </config>
+      </attribute>
+      
+   </mbean>
+
+
+</server>




More information about the jbosscache-commits mailing list