tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r399793 - in /tomcat/container/tc5.5.x/modules/groupcom: src/share/org/apache/catalina/tribes/membership/McastService.java to-do.txt
Date Thu, 04 May 2006 17:47:53 GMT
Author: fhanik
Date: Thu May  4 10:47:50 2006
New Revision: 399793

URL: http://svn.apache.org/viewcvs?rev=399793&view=rev
Log:
Enable the system to set the port/ip to be broadcasted changed even after a start, useful
when doing a sequential start of different components at a different time

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
    tomcat/container/tc5.5.x/modules/groupcom/to-do.txt

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java?rev=399793&r1=399792&r2=399793&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
Thu May  4 10:47:50 2006
@@ -23,6 +23,7 @@
 import org.apache.catalina.tribes.MembershipService;
 import org.apache.catalina.tribes.util.StringManager;
 import org.apache.catalina.tribes.util.UUIDGenerator;
+import java.io.IOException;
 
 /**
  * A <b>membership</b> implementation using simple multicast.
@@ -146,6 +147,15 @@
     public void setLocalMemberProperties(String listenHost, int listenPort) {
         properties.setProperty("tcpListenHost",listenHost);
         properties.setProperty("tcpListenPort",String.valueOf(listenPort));
+        try {
+            if (localMember != null) {
+                localMember.setHostname(listenHost);
+                localMember.setPort(listenPort);
+                localMember.getData(true, true);
+            }
+        }catch ( IOException x ) {
+            throw new IllegalArgumentException(x);
+        }
     }
     
     public void setMcastAddr(String addr) {

Modified: tomcat/container/tc5.5.x/modules/groupcom/to-do.txt
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/to-do.txt?rev=399793&r1=399792&r2=399793&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/to-do.txt (original)
+++ tomcat/container/tc5.5.x/modules/groupcom/to-do.txt Thu May  4 10:47:50 2006
@@ -51,10 +51,6 @@
        the valid range for check time, 
     4. send a RPC message, if no reply, remove the map from itself
 
-43. Silent member, node discovery.
-    Add in the ability to start up tribes, but don't start the membership broadcast
-    component, only the listener
-
 41. Build a tipi that is a soft membership
 
 38. Make the AbstractReplicatedMap accept non serializable elements, but just don't replicate
them
@@ -269,3 +265,8 @@
 Notes: Completed. The error will be wrapped in a ChannelException and marked as a 
        RemoteProcessException for that node.
        To receive this exception, one must turn on 
+
+43. Silent member, node discovery.
+    Add in the ability to start up tribes, but don't start the membership broadcast
+    component, only the listener
+Notes: Completed. added in correct startup sequences.
\ No newline at end of file



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message