You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by kf...@apache.org on 2017/04/20 07:30:16 UTC
svn commit: r1792021 - in /tomcat/trunk:
java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptor.java
java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptorMBean.java
webapps/docs/changelog.xml
Author: kfujino
Date: Thu Apr 20 07:30:15 2017
New Revision: 1792021
URL: http://svn.apache.org/viewvc?rev=1792021&view=rev
Log:
Add MBean for StaticMembershipInterceptor.
Added:
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptorMBean.java (with props)
Modified:
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptor.java
tomcat/trunk/webapps/docs/changelog.xml
Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptor.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptor.java?rev=1792021&r1=1792020&r2=1792021&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptor.java (original)
+++ tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptor.java Thu Apr 20 07:30:15 2017
@@ -32,7 +32,8 @@ import org.apache.catalina.tribes.util.S
import org.apache.juli.logging.Log;
import org.apache.juli.logging.LogFactory;
-public class StaticMembershipInterceptor extends ChannelInterceptorBase {
+public class StaticMembershipInterceptor extends ChannelInterceptorBase
+ implements StaticMembershipInterceptorMBean {
private static final Log log = LogFactory.getLog(StaticMembershipInterceptor.class);
protected static final StringManager sm =
Added: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptorMBean.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptorMBean.java?rev=1792021&view=auto
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptorMBean.java (added)
+++ tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptorMBean.java Thu Apr 20 07:30:15 2017
@@ -0,0 +1,26 @@
+/*
+ * 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.group.interceptors;
+
+import org.apache.catalina.tribes.Member;
+
+public interface StaticMembershipInterceptorMBean {
+
+ public int getOptionFlag();
+
+ public Member getLocalMember(boolean incAlive);
+}
\ No newline at end of file
Propchange: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/StaticMembershipInterceptorMBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1792021&r1=1792020&r2=1792021&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Thu Apr 20 07:30:15 2017
@@ -85,8 +85,8 @@
<add>
Add JMX support for <code>Channel Interceptors</code>. The Interceptors
that implement jmx support are <code>TcpFailureDetector</code>,
- <code>ThroughputInterceptor</code> and <code>TcpPingInterceptor</code>.
- (kfujino)
+ <code>ThroughputInterceptor</code>, <code>TcpPingInterceptor</code> and
+ <code>StaticMembershipInterceptor</code>. (kfujino)
</add>
</changelog>
</subsection>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org