Author: jmesnil
Date: 2010-07-19 08:09:09 -0400 (Mon, 19 Jul 2010)
New Revision: 9409
Modified:
branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java
Log:
HA refactoring
* do not announce the node if there is no cluster connections
Modified:
branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java
===================================================================
---
branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java 2010-07-19
09:13:55 UTC (rev 9408)
+++
branches/2_2_0_HA_Improvements/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java 2010-07-19
12:09:09 UTC (rev 9409)
@@ -152,8 +152,11 @@
// Now announce presence
- announceNode();
-
+ if (clusterConnections.size() > 0)
+ {
+ announceNode();
+ }
+
started = true;
}
@@ -264,7 +267,10 @@
{
backup = false;
- announceNode();
+ if (clusterConnections.size() > 0)
+ {
+ announceNode();
+ }
}
}
Show replies by date