Author: kfujino
Date: Wed May  9 04:31:02 2018
New Revision: 1831224

URL: http://svn.apache.org/viewvc?rev=1831224&view=rev
Log:
Introduce MembershipProvider interface in order to provide membership.

Added:
    tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java   
(with props)

Added: 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=1831224&view=auto
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java (added)
+++ tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java Wed 
May  9 04:31:02 2018
@@ -0,0 +1,37 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.catalina.tribes;
+
+import java.util.Properties;
+
+public interface MembershipProvider {
+
+    public void init(Properties properties) throws Exception;
+
+    public void start(int level) throws java.lang.Exception;
+
+    public boolean stop(int level) throws java.lang.Exception;
+
+    public void setMembershipListener(MembershipListener listener);
+
+    public boolean hasMembers();
+
+    public Member getMember(Member mbr);
+
+    public Member[] getMembers();
+}

Propchange: tomcat/trunk/java/org/apache/catalina/tribes/MembershipProvider.java
------------------------------------------------------------------------------
    svn:eol-style = native



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

Reply via email to