| Links Top Level Elements Executors Connectors Containers Nested Components Cluster Elements Global Settings | Apache Tomcat Configuration ReferenceThe Channel Interceptor object| Introduction |  | 
  
  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.
   | 
 | Available Interceptors |  | 
 
    
    org.apache.catalina.tribes.group.interceptors.TcpFailureDetectororg.apache.catalina.tribes.group.interceptors.ThroughputInterceptororg.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptororg.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptororg.apache.catalina.tribes.group.interceptors.NonBlockingCoordinatororg.apache.catalina.tribes.group.interceptors.OrderInterceptororg.apache.catalina.tribes.group.interceptors.SimpleCoordinatororg.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptororg.apache.catalina.tribes.group.interceptors.TwoPhaseCommitInterceptororg.apache.catalina.tribes.group.interceptors.DomainFilterInterceptororg.apache.catalina.tribes.group.interceptors.FragmentationInterceptororg.apache.catalina.tribes.group.interceptors.GzipInterceptor | 
 | Static Membership |  | 
  
   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.StaticMembershipInterceptorunderneath theorg.apache.catalina.tribes.group.interceptors.TcpFailureDetectorinterceptor.
   Inside theStaticMembershipInterceptoryou can add the static members you wish to have.
   TheTcpFailureDetectorwill do a health check on the static members,and also monitor them for crashes
   so they will have the same level of notification mechanism as the members that are automatically discovered. |  |  |  |  |  | 
     <Interceptor className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
       <Member className="org.apache.catalina.tribes.membership.StaticMember"
                  port="5678"
                  securePort="-1"
                  host="tomcat01.mydomain.com"
                  domain="staging-cluster"
                  uniqueId="{0,1,2,3,4,5,6,7,8,9}"/>
     </Interceptor>
   
    |  |  |  |  |  | 
 | 
 | Attributes |  | 
  | Common Attributes |  | 
   | Attribute | Description | 
|---|
 | className | Required, as there is no default |  | optionFlag | 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. | 
 | 
 | org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor Attributes |  | 
   | Attribute | Description | 
|---|
 | className | Required, This dispatcher uses JDK 1.5 java.util.concurrent package |  | optionFlag | 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.
       The other attributes are inherited from its base classorg.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor. | 
 | 
 | org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor Attributes |  | 
   | Attribute | Description | 
|---|
 | className | Required, Same implementation as MessageDispatch15Interceptor, but with JDK 1.4 compliance. |  | optionFlag | 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. |  | alwaysSend | What behavior should be executed when the dispatch queue is full. If true(default), then the message is
       is sent synchronously, iffalsean error is thrown. |  | maxQueueSize | Size in bytes of the dispatch queue, the default value is  1024*1024*64 (64MB)sets the maximum queue size for the dispatch queue
       if the queue fills up, one can trigger the behavior, ifalwaysSendis set to true, the message will be sent synchronously
       if the flag is false, an error is thrown | 
 | 
 | Nested element StaticMember Attributes |  | 
   | Attribute | Description | 
|---|
 | className | Only one implementation available: org.apache.catalina.tribes.membership.StaticMember |  | port | The port that this static member listens to for cluster messages |  | securePort | The secure port this static member listens to for encrypted cluster messages
       default value is -1, this value means the member is not listening on a secure port |  | host | The host (or network interface) that this static member listens for cluster messages.
       Three different type of values are possible: 1. IP address in the form of "216.123.1.23"
 2. Hostnames like "tomcat01.mydomain.com" or "tomcat01" as long as they resolve correctly
 3. byte array in string form, for example {216,123,12,3}
 
 |  | domain | The logical cluster domain for this this static member listens for cluster messages.
       Two different type of values are possible: 1. Regular string values like "staging-domain" or "tomcat-cluster" will be converted into bytes 
       using ISO-8859-1 encoding.
       2. byte array in string form, for example {216,123,12,3}
 
 |  | uniqueId | A universally uniqueId for this static member.
       The values must be 16 bytes in the following form: 1. byte array in string form, for example {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}
 
 | 
 | 
 | 
 |