[jboss-cvs] JBossCache/src/org/jboss/cache ...
Manik Surtani
msurtani at jboss.com
Fri Dec 8 07:17:58 EST 2006
User: msurtani
Date: 06/12/08 07:17:58
Modified: src/org/jboss/cache Tag: Branch_JBossCache_1_4_0
TreeCache.java
Log:
Anycast test
Revision Changes Path
No revision
No revision
1.195.2.30 +13 -2 JBossCache/src/org/jboss/cache/TreeCache.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: TreeCache.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/TreeCache.java,v
retrieving revision 1.195.2.29
retrieving revision 1.195.2.30
diff -u -b -r1.195.2.29 -r1.195.2.30
--- TreeCache.java 8 Dec 2006 01:24:59 -0000 1.195.2.29
+++ TreeCache.java 8 Dec 2006 12:17:58 -0000 1.195.2.30
@@ -99,7 +99,7 @@
* @author <a href="mailto:manik at jboss.org">Manik Surtani (manik at jboss.org)</a>
* @author Brian Stansberry
* @author Daniel Huang (dhuang at jboss.org)
- * @version $Id: TreeCache.java,v 1.195.2.29 2006/12/08 01:24:59 bstansberry Exp $
+ * @version $Id: TreeCache.java,v 1.195.2.30 2006/12/08 12:17:58 msurtani Exp $
* <p/>
* @see <a href="http://labs.jboss.com/portal/jbosscache/docs">JBossCache doc</a>
*/
@@ -110,6 +110,7 @@
private static final String JBOSS_SERVER_DOMAIN = "jboss";
private static final String REMOVAL_MARKER = "__JBOSS_MARKED_FOR_REMOVAL";
+ private boolean forceAnycast = false;
/**
* Default replication version, from {@link Version#getVersionShort}.
*/
@@ -561,6 +562,16 @@
return using_mux;
}
+ public boolean isForceAnycast()
+ {
+ return forceAnycast;
+ }
+
+ public void setForceAnycast(boolean b)
+ {
+ forceAnycast = b;
+ }
+
/**
* Returns the transaction table.
*/
@@ -4315,7 +4326,7 @@
// if we are using buddy replication, all calls should use ANYCAST. Otherwise, use the default (multicast).
- rsps = disp.callRemoteMethods(validMembers, method_call, mode, timeout, buddyManager != null && buddyManager.isEnabled());
+ rsps = disp.callRemoteMethods(validMembers, method_call, mode, timeout, forceAnycast || buddyManager != null && buddyManager.isEnabled());
// a null response is 99% likely to be due to a marshalling problem - we throw a NSE, this needs to be changed when
More information about the jboss-cvs-commits
mailing list