axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From az...@apache.org
Subject svn commit: r702521 - /webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/Axis2Coordinator.java
Date Tue, 07 Oct 2008 15:39:11 GMT
Author: azeez
Date: Tue Oct  7 08:39:11 2008
New Revision: 702521

URL: http://svn.apache.org/viewvc?rev=702521&view=rev
Log:
Activating either the local member, if it is passive, or the first passive member found.

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

Modified: webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/Axis2Coordinator.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/Axis2Coordinator.java?rev=702521&r1=702520&r2=702521&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/Axis2Coordinator.java
(original)
+++ webservices/axis2/trunk/java/modules/clustering/src/org/apache/axis2/clustering/tribes/Axis2Coordinator.java
Tue Oct  7 08:39:11 2008
@@ -41,8 +41,19 @@
         super.memberDisappeared(member);
         if (isCoordinator()) {
             if (TribesUtil.toAxis2Member(member).isActive()) {
-                //TODO If an ACTIVE member disappeared, activate a passive member
 
+                // If the local member is PASSIVE, we try to activate it
+                if (!TribesUtil.toAxis2Member(getLocalMember(true)).isActive()) {
+                    //TODO: ACTIVATE local member
+                    
+                } else {
+                    Member[] members = getMembers();
+                    for (Member aMember : members) {
+                        if (!TribesUtil.toAxis2Member(member).isActive()) {
+                            // TODO: Send ACTIVATE message to this passive member
+                        }
+                    }
+                }
             } else {
                 //TODO If a PASSIVE member disappeared, we may need to startup another
                 // passive node



Mime
View raw message