Author: kfujino
Date: Mon Apr 24 07:26:10 2017
New Revision: 1792429
URL: http://svn.apache.org/viewvc?rev=1792429&view=rev
Log:
Add MBean for DomainFilterInterceptor.
Added:
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptorMBean.java
(with props)
Modified:
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptor.java
tomcat/trunk/webapps/docs/changelog.xml
Modified:
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptor.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptor.java?rev=1792429&r1=1792428&r2=1792429&view=diff
==============================================================================
---
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptor.java
(original)
+++
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptor.java
Mon Apr 24 07:26:10 2017
@@ -35,7 +35,9 @@ import org.apache.juli.logging.LogFactor
*
* @version 1.0
*/
-public class DomainFilterInterceptor extends ChannelInterceptorBase {
+public class DomainFilterInterceptor extends ChannelInterceptorBase
+ implements DomainFilterInterceptorMBean {
+
private static final Log log =
LogFactory.getLog(DomainFilterInterceptor.class);
protected static final StringManager sm =
StringManager.getManager(DomainFilterInterceptor.class);
protected volatile Membership membership = null;
@@ -115,6 +117,7 @@ public class DomainFilterInterceptor ext
}
+ @Override
public byte[] getDomain() {
return domain;
}
@@ -131,10 +134,12 @@ public class DomainFilterInterceptor ext
setDomain(org.apache.catalina.tribes.util.Arrays.convert(domain));
}
+ @Override
public int getLogInterval() {
return logInterval;
}
+ @Override
public void setLogInterval(int logInterval) {
this.logInterval = logInterval;
}
Added:
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptorMBean.java
URL:
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptorMBean.java?rev=1792429&view=auto
==============================================================================
---
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptorMBean.java
(added)
+++
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptorMBean.java
Mon Apr 24 07:26:10 2017
@@ -0,0 +1,29 @@
+/*
+ * 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 DomainFilterInterceptorMBean {
+
+ public int getOptionFlag();
+
+ public byte[] getDomain();
+
+ public int getLogInterval();
+
+ public void setLogInterval(int logInterval);
+
+}
Propchange:
tomcat/trunk/java/org/apache/catalina/tribes/group/interceptors/DomainFilterInterceptorMBean.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=1792429&r1=1792428&r2=1792429&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Mon Apr 24 07:26:10 2017
@@ -87,8 +87,9 @@
Add JMX support for <code>Channel Interceptors</code>.ãThe
Interceptors
that implement jmx support are <code>TcpFailureDetector</code>,
<code>ThroughputInterceptor</code>, <code>TcpPingInterceptor</code>,
- <code>StaticMembershipInterceptor</code> and
- <code>MessageDispatchInterceptor</code>. (kfujino)
+ <code>StaticMembershipInterceptor</code>,
+ <code>MessageDispatchInterceptor</code> and
+ <code>DomainFilterInterceptor</code>. (kfujino)
</add>
</changelog>
</subsection>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]