tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kfuj...@apache.org
Subject svn commit: r1842605 - in /tomcat/trunk: java/org/apache/catalina/tribes/ java/org/apache/catalina/tribes/membership/ webapps/docs/
Date Tue, 02 Oct 2018 08:40:02 GMT
Author: kfujino
Date: Tue Oct  2 08:40:02 2018
New Revision: 1842605

URL: http://svn.apache.org/viewvc?rev=1842605&view=rev
Log:
Add setMembershipService method to the MembershipProvider.

Modified:
    tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java
    tomcat/trunk/java/org/apache/catalina/tribes/membership/MembershipProviderBase.java
    tomcat/trunk/java/org/apache/catalina/tribes/membership/StaticMembershipProvider.java
    tomcat/trunk/webapps/docs/changelog.xml

Modified: tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java?rev=1842605&r1=1842604&r2=1842605&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java Tue Oct  2 08:40:02
2018
@@ -29,6 +29,8 @@ public interface MembershipProvider {
 
     public void setMembershipListener(MembershipListener listener);
 
+    public void setMembershipService(MembershipService service);
+
     public boolean hasMembers();
 
     public Member getMember(Member mbr);

Modified: tomcat/trunk/java/org/apache/catalina/tribes/membership/MembershipProviderBase.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/membership/MembershipProviderBase.java?rev=1842605&r1=1842604&r2=1842605&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/membership/MembershipProviderBase.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/membership/MembershipProviderBase.java Tue
Oct  2 08:40:02 2018
@@ -22,11 +22,13 @@ import java.util.Properties;
 import org.apache.catalina.tribes.Member;
 import org.apache.catalina.tribes.MembershipListener;
 import org.apache.catalina.tribes.MembershipProvider;
+import org.apache.catalina.tribes.MembershipService;
 
 public abstract class MembershipProviderBase implements MembershipProvider {
 
     protected Membership membership;
     protected MembershipListener membershipListener;
+    protected MembershipService service;
 
     @Override
     public void init(Properties properties) throws Exception {
@@ -54,4 +56,9 @@ public abstract class MembershipProvider
     public void setMembershipListener(MembershipListener listener) {
         this.membershipListener = listener;
     }
+
+    @Override
+    public void setMembershipService(MembershipService service) {
+        this.service = service;
+    }
 }
\ No newline at end of file

Modified: tomcat/trunk/java/org/apache/catalina/tribes/membership/StaticMembershipProvider.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/membership/StaticMembershipProvider.java?rev=1842605&r1=1842604&r2=1842605&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/membership/StaticMembershipProvider.java
(original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/membership/StaticMembershipProvider.java
Tue Oct  2 08:40:02 2018
@@ -34,7 +34,6 @@ import org.apache.catalina.tribes.Channe
 import org.apache.catalina.tribes.ChannelListener;
 import org.apache.catalina.tribes.Heartbeat;
 import org.apache.catalina.tribes.Member;
-import org.apache.catalina.tribes.MembershipService;
 import org.apache.catalina.tribes.group.Response;
 import org.apache.catalina.tribes.group.RpcCallback;
 import org.apache.catalina.tribes.group.RpcChannel;
@@ -52,7 +51,6 @@ public class StaticMembershipProvider ex
 
     protected Channel channel;
     protected RpcChannel rpcChannel;
-    protected MembershipService service;
     private String membershipName = null;
     private byte[] membershipId = null;
     protected ArrayList<StaticMember> staticMembers;
@@ -316,10 +314,6 @@ public class StaticMembershipProvider ex
         this.channel = channel;
     }
 
-    public void setMembershipService(MembershipService service) {
-        this.service = service;
-    }
-
     public void setStaticMembers(ArrayList<StaticMember> staticMembers) {
         this.staticMembers = staticMembers;
     }

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1842605&r1=1842604&r2=1842605&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Tue Oct  2 08:40:02 2018
@@ -138,6 +138,14 @@
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Tribes">
+    <changelog>
+      <add>
+        Add <code>setMembershipService</code> method to the
+        <code>MembershipProvider</code>. (kfujino)
+      </add>
+    </changelog>
+  </subsection>
   <subsection name="Other">
     <changelog>
       <fix>



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


Mime
View raw message