From: fhanik Date: Thu, 12 Oct 2006 16:32:38 +0000 (+0000) Subject: more interceptor doc, not yet complete, need to figure out if the digester works... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=a29dcb013ebb9c9c8143638fcd117987844c4d1c;p=tomcat7.0 more interceptor doc, not yet complete, need to figure out if the digester works with setSomeProperty(byte[] data) when parsing XML git-svn-id: https://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk@463308 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/ha/ClusterRuleSet.java b/java/org/apache/catalina/ha/ClusterRuleSet.java index dc94f7a20..c6d7c7bfb 100644 --- a/java/org/apache/catalina/ha/ClusterRuleSet.java +++ b/java/org/apache/catalina/ha/ClusterRuleSet.java @@ -146,6 +146,15 @@ public class ClusterRuleSet extends RuleSetBase { digester.addSetNext(channelPrefix + "Interceptor", "addInterceptor", "org.apache.catalina.tribes.ChannelInterceptor"); + + + digester.addObjectCreate(channelPrefix + "Interceptor/Member", + null, // MUST be specified in the element + "className"); + digester.addSetProperties(channelPrefix + "Interceptor/Member"); + digester.addSetNext(channelPrefix + "Interceptor/Member", + "addStaticMember", + "org.apache.catalina.tribes.Member"); } digester.addObjectCreate(prefix + "Valve", diff --git a/webapps/docs/config/cluster-interceptor.xml b/webapps/docs/config/cluster-interceptor.xml index b859932f6..fa755178b 100644 --- a/webapps/docs/config/cluster-interceptor.xml +++ b/webapps/docs/config/cluster-interceptor.xml @@ -15,29 +15,93 @@
+

+ Apache Tribes supports an interceptor architecture to intercept both messages and membership notifications. + This architecture allows decoupling of logic and opens the way for some very kewl feature add ons. +

+
- - +
+

+

+

+
+

+ In addition to dynamic discovery, Apache Tribes also supports static membership, with membership verification. + To achieve this add the org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor + underneath the org.apache.catalina.tribes.group.interceptors.TcpFailureDetector interceptor. + Inside the StaticMembershipInterceptor you can add the static members you wish to have. +

+
- - - - - - - - - - - + + + Required, as there is no default + + + If you want the interceptor to trigger on certain message depending on the message's option flag, + you can setup the interceptors flag here. + The default value is 0, meaning this interceptor will trigger on all messages. + + - + + + + Required, This dispatcher uses JDK 1.5 java.util.concurrent package + + + The default and hard coded value is 8 (org.apache.catalina.tribes.Channel.SEND_OPTIONS_ASYNCHRONOUS). + The dispatcher will trigger on this value only, as it is predefined by Tribes. + + + + + + + Required, Same implementation as MessageDispatch15Interceptor, but with JDK 1.4 compliance. + + + The default and hard coded value is 8 (org.apache.catalina.tribes.Channel.SEND_OPTIONS_ASYNCHRONOUS). + The dispatcher will trigger on this value only, as it is predefined by Tribes. + + + + + + + + + + + Defines the interval in number of messages when we are to report the throughput statistics. + The report is logged to the org.apache.juli.logging.LogFactory.getLog(ThroughputInterceptor.class) + logger under the INFO level. + Default value is to report every 10000 messages. + + + + + +