[hornetq-commits] JBoss hornetq SVN: r10831 - branches/Branch_2_2_EAP_cluster_clean2/src/main/org/hornetq/core/server/cluster/impl.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Jun 16 21:57:34 EDT 2011


Author: clebert.suconic at jboss.com
Date: 2011-06-16 21:57:34 -0400 (Thu, 16 Jun 2011)
New Revision: 10831

Modified:
   branches/Branch_2_2_EAP_cluster_clean2/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java
Log:
tweak

Modified: branches/Branch_2_2_EAP_cluster_clean2/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java
===================================================================
--- branches/Branch_2_2_EAP_cluster_clean2/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java	2011-06-17 01:56:54 UTC (rev 10830)
+++ branches/Branch_2_2_EAP_cluster_clean2/src/main/org/hornetq/core/server/cluster/impl/ClusterManagerImpl.java	2011-06-17 01:57:34 UTC (rev 10831)
@@ -185,7 +185,7 @@
       started = true;
    }
 
-   public void stop() throws Exception
+   public synchronized void stop() throws Exception
    {
       if (!started)
       {
@@ -290,7 +290,7 @@
       {
          for (ClusterConnection clusterConnection : clusterConnections.values())
          {
-            clusterConnection.nodeAnnounced(nodeID, connectorPair);
+            clusterConnection.nodeUP(nodeID, connectorPair, last);
          }
       }
    }
@@ -338,7 +338,8 @@
       topology.sendTopology(listener);
    }
 
-   public void removeClusterTopologyListener(final ClusterTopologyListener listener,
+   // TODO: needs to be sync?
+   public synchronized void removeClusterTopologyListener(final ClusterTopologyListener listener,
                                                           final boolean clusterConnection)
    {
       if (clusterConnection)



More information about the hornetq-commits mailing list