Author: kfujino Date: Wed Apr 19 08:21:06 2017 New Revision: 1791873 URL: http://svn.apache.org/viewvc?rev=1791873&view=rev Log: Add MBean for TcpPingInterceptor.
Added: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptorMBean.java (with props) Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java tomcat/trunk/webapps/docs/changelog.xml Modified: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java?rev=1791873&r1=1791872&r2=1791873&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java (original) +++ tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptor.java Wed Apr 19 08:21:06 2017 @@ -40,7 +40,7 @@ import org.apache.juli.logging.LogFactor * @version 1.0 */ -public class TcpPingInterceptor extends ChannelInterceptorBase { +public class TcpPingInterceptor extends ChannelInterceptorBase implements TcpPingInterceptorMBean { private static final Log log = LogFactory.getLog(TcpPingInterceptor.class); protected static final StringManager sm = StringManager.getManager(TcpPingInterceptor.class); Added: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptorMBean.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptorMBean.java?rev=1791873&view=auto ============================================================================== --- tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptorMBean.java (added) +++ tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptorMBean.java Wed Apr 19 08:21:06 2017 @@ -0,0 +1,28 @@ +/* + * 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; + +public interface TcpPingInterceptorMBean { + + public int getOptionFlag(); + + public long getInterval(); + + public boolean getUseThread(); + +} Propchange: tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/TcpPingInterceptorMBean.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=1791873&r1=1791872&r2=1791873&view=diff ============================================================================== --- tomcat/trunk/webapps/docs/changelog.xml (original) +++ tomcat/trunk/webapps/docs/changelog.xml Wed Apr 19 08:21:06 2017 @@ -84,8 +84,9 @@ </add> <add> Add JMX support for <code>Channel Interceptors</code>.ãThe Interceptors - that implement jmx support are <code>TcpFailureDetector</code> - and <code>ThroughputInterceptor</code>. (kfujino) + that implement jmx support are <code>TcpFailureDetector</code>, + <code>ThroughputInterceptor</code> and <code>TcpPingInterceptor</code>. + (kfujino) </add> </changelog> </subsection> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org