tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r407616 - in /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership: McastService.java McastServiceImpl.java
Date Thu, 18 May 2006 19:15:12 GMT
Author: fhanik
Date: Thu May 18 12:15:12 2006
New Revision: 407616

URL: http://svn.apache.org/viewvc?rev=407616&view=rev
Log:
Fixed order of component creation

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

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastService.java?rev=407616&r1=407615&r2=407616&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 18 12:15:12 2006
@@ -409,8 +409,8 @@
         p.setProperty("bindAddress","localhost");
         p.setProperty("memberDropTime","3000");
         p.setProperty("mcastFrequency","500");
-        p.setProperty("tcpListenPort",args[1]);
-        p.setProperty("tcpListenHost",args[0]);
+        p.setProperty("tcpListenPort","4000");
+        p.setProperty("tcpListenHost","127.0.0.1");
         service.setProperties(p);
         service.start();
         Thread.sleep(60*1000*60);

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java?rev=407616&r1=407615&r2=407616&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/membership/McastServiceImpl.java
Thu May 18 12:15:12 2006
@@ -140,11 +140,14 @@
         MembershipListener service)
     throws IOException {
         this.member = member;
-        address = mcastAddress;
+        this.address = mcastAddress;
         this.port = port;
         this.mcastSoTimeout = soTimeout;
         this.mcastTTL = ttl;
         this.mcastBindAddress = bind;
+        this.timeToExpiration = expireTime;
+        this.service = service;
+        this.sendFrequency = sendFrequency;
         setupSocket();
         sendPacket = new DatagramPacket(new byte[1024],1024);
         sendPacket.setAddress(address);
@@ -153,9 +156,6 @@
         receivePacket.setAddress(address);
         receivePacket.setPort(port);
         membership = new Membership(member);
-        timeToExpiration = expireTime;
-        this.service = service;
-        this.sendFrequency = sendFrequency;
     }
     
     protected void setupSocket() throws IOException {



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


Mime
View raw message