axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r542227 - /webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java
Date Mon, 28 May 2007 13:39:22 GMT
Author: azeez
Date: Mon May 28 06:39:21 2007
New Revision: 542227

URL: http://svn.apache.org/viewvc?view=rev&rev=542227
Log:
Formatting

Modified:
    webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java

Modified: webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java?view=diff&rev=542227&r1=542226&r2=542227
==============================================================================
--- webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java
(original)
+++ webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/TribesClusterManager.java
Mon May 28 06:39:21 2007
@@ -132,19 +132,18 @@
 
             // If there is at least one member in the Tribe, get the current state from a
member
             Random random = new Random();
-            int numberOfTries = 0;
+            int numberOfTries = 0; // Don't keep on trying infinitely
             while (members.length > 0 &&
                    configurationContext.
-                           getPropertyNonReplicable(ClusteringConstants.
-                                   CLUSTER_INITIALIZED) == null &&
-                                                                numberOfTries < 50){ //
Don't keep on trying infinitely
+                           getPropertyNonReplicable(ClusteringConstants.CLUSTER_INITIALIZED)
== null
+                   && numberOfTries < 50) {
 
                 // While there are members and GetStateResponseCommand is not received do
the following
                 try {
                     members = channel.getMembers();
                     int memberIndex = random.nextInt(members.length);
                     sender.sendToMember(new GetStateCommand(), members[memberIndex]);
-                    System.out.println("### WAITING FOR STATE UPDATE");
+                    log.debug("WAITING FOR STATE UPDATE...");
                     Thread.sleep(200);
                 } catch (Exception e) {
                     e.printStackTrace();



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message