Search in sources :

Example 6 with TcpFailureDetector

use of org.apache.catalina.tribes.group.interceptors.TcpFailureDetector in project tomcat by apache.

the class SimpleTcpCluster method checkDefaults.

protected void checkDefaults() {
    if (clusterListeners.size() == 0 && managerTemplate instanceof DeltaManager) {
        addClusterListener(new ClusterSessionListener());
    }
    if (valves.size() == 0) {
        addValve(new JvmRouteBinderValve());
        addValve(new ReplicationValve());
    }
    if (clusterDeployer != null) {
        clusterDeployer.setCluster(this);
    }
    if (channel == null) {
        channel = new GroupChannel();
    }
    if (channel instanceof GroupChannel && !((GroupChannel) channel).getInterceptors().hasNext()) {
        channel.addInterceptor(new MessageDispatchInterceptor());
        channel.addInterceptor(new TcpFailureDetector());
    }
    if (heartbeatBackgroundEnabled) {
        channel.setHeartbeat(false);
    }
}
Also used : JvmRouteBinderValve(org.apache.catalina.ha.session.JvmRouteBinderValve) MessageDispatchInterceptor(org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor) GroupChannel(org.apache.catalina.tribes.group.GroupChannel) TcpFailureDetector(org.apache.catalina.tribes.group.interceptors.TcpFailureDetector) DeltaManager(org.apache.catalina.ha.session.DeltaManager) ClusterSessionListener(org.apache.catalina.ha.session.ClusterSessionListener)

Aggregations

GroupChannel (org.apache.catalina.tribes.group.GroupChannel)6 TcpFailureDetector (org.apache.catalina.tribes.group.interceptors.TcpFailureDetector)6 MessageDispatchInterceptor (org.apache.catalina.tribes.group.interceptors.MessageDispatchInterceptor)5 ClusterSessionListener (org.apache.catalina.ha.session.ClusterSessionListener)4 JvmRouteBinderValve (org.apache.catalina.ha.session.JvmRouteBinderValve)4 StaticMembershipInterceptor (org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor)4 McastService (org.apache.catalina.tribes.membership.McastService)4 ReplicationTransmitter (org.apache.catalina.tribes.transport.ReplicationTransmitter)4 ArrayList (java.util.ArrayList)2 Properties (java.util.Properties)2 DeltaManager (org.apache.catalina.ha.session.DeltaManager)2 ReplicationValve (org.apache.catalina.ha.tcp.ReplicationValve)2 SimpleTcpCluster (org.apache.catalina.ha.tcp.SimpleTcpCluster)2 ManagedChannel (org.apache.catalina.tribes.ManagedChannel)2 Member (org.apache.catalina.tribes.Member)2 DomainFilterInterceptor (org.apache.catalina.tribes.group.interceptors.DomainFilterInterceptor)2 FragmentationInterceptor (org.apache.catalina.tribes.group.interceptors.FragmentationInterceptor)2 GzipInterceptor (org.apache.catalina.tribes.group.interceptors.GzipInterceptor)2 MessageDispatch15Interceptor (org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor)2 OrderInterceptor (org.apache.catalina.tribes.group.interceptors.OrderInterceptor)2