JBoss Cache SVN: r8173 - core/trunk/src/main/java/org/jboss/cache/buddyreplication.
by jbosscache-commits@lists.jboss.org
Author: manik.surtani(a)jboss.com
Date: 2009-08-10 06:11:34 -0400 (Mon, 10 Aug 2009)
New Revision: 8173
Modified:
core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java
Log:
BR enablement flag
Modified: core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java
===================================================================
--- core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java 2009-08-07 15:22:42 UTC (rev 8172)
+++ core/trunk/src/main/java/org/jboss/cache/buddyreplication/BuddyManager.java 2009-08-10 10:11:34 UTC (rev 8173)
@@ -116,6 +116,8 @@
*/
BuddyGroup buddyGroup;
+ private volatile boolean enabled = false;
+
/**
* Map of buddy pools received from broadcasts
*/
@@ -187,6 +189,7 @@
private void setupInternals(BuddyReplicationConfig config)
{
this.config = config;
+ enabled = this.config.isEnabled();
trace = log.isTraceEnabled();
BuddyLocatorConfig blc = config.getBuddyLocatorConfig();
try
@@ -245,7 +248,7 @@
public boolean isEnabled()
{
- return config.isEnabled();
+ return enabled;
}
public String getBuddyPoolName()