[jboss-cvs] JBossCache/tests/functional/org/jboss/cache/statetransfer ...
Brian Stansberry
brian.stansberry at jboss.com
Fri Nov 3 13:54:48 EST 2006
User: bstansberry
Date: 06/11/03 13:54:48
Modified: tests/functional/org/jboss/cache/statetransfer Tag:
Branch_JBossCache_1_4_0 StateTransferTestBase.java
Log:
Add hooks for testing with multiplexer.
Revision Changes Path
No revision
No revision
1.17.2.1 +14 -0 JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: StateTransferTestBase.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/tests/functional/org/jboss/cache/statetransfer/StateTransferTestBase.java,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -u -b -r1.17 -r1.17.2.1
--- StateTransferTestBase.java 5 May 2006 12:06:59 -0000 1.17
+++ StateTransferTestBase.java 3 Nov 2006 18:54:48 -0000 1.17.2.1
@@ -96,6 +96,8 @@
configureCacheLoader(tree, cacheID, useMarshalling, cacheLoaderAsync);
}
+ configureMultiplexer(tree);
+
// Put the cache in the map before starting, so if it fails in
// start it can still be destroyed later
caches.put(cacheID, tree);
@@ -109,6 +111,18 @@
return tree;
}
+ /**
+ * Provides a hook for multiplexer integration. This default implementation
+ * is a no-op; subclasses that test mux integration would override
+ * to integrate the given cache with a multiplexer.
+ *
+ * param cache a cache that has been configured but not yet created.
+ */
+ protected void configureMultiplexer(TreeCacheMBean cache) throws Exception
+ {
+ // default does nothing
+ }
+
protected void startCache(TreeCacheMBean cache) throws Exception
{
cache.createService();
More information about the jboss-cvs-commits
mailing list