Tabnine Logo
SimpleTcpCluster.addClusterListener
Code IndexAdd Tabnine to your IDE (free)

How to use
addClusterListener
method
in
org.apache.catalina.ha.tcp.SimpleTcpCluster

Best Java code snippets using org.apache.catalina.ha.tcp.SimpleTcpCluster.addClusterListener (Showing top 3 results out of 315)

origin: org.apache.geronimo.ext.tomcat/catalina-ha

protected void checkDefaults() {
  if ( clusterListeners.size() == 0 ) {
    addClusterListener(new JvmRouteSessionIDBinderListener()); 
    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 MessageDispatch15Interceptor());
    channel.addInterceptor(new TcpFailureDetector());
  }
}
origin: codefollower/Tomcat-Research

protected void checkDefaults() {
  if ( clusterListeners.size() == 0 ) {
    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 MessageDispatch15Interceptor());
    channel.addInterceptor(new TcpFailureDetector());
  }
}
origin: org.apache.tomcat/tomcat-catalina-ha

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);
}
org.apache.catalina.ha.tcpSimpleTcpClusteraddClusterListener

Javadoc

Add cluster message listener and register cluster to this listener.

Popular methods of SimpleTcpCluster

  • addValve
    Add cluster valve Cluster Valves are only add to container when cluster is started!
  • checkDefaults
  • getContainer
    Get the Container associated with our Cluster
  • getManagerTemplate
  • isHeartbeatBackgroundEnabled
    Return heartbeat enable flag (default false)
  • fireLifecycleEvent
  • getClusterName
    Return the name of the cluster that this Server is currently configured to operate within.
  • getLocalMember
    Return the member that represents this node.
  • getManagerName
  • messageReceived
  • register
  • registerClusterValve
    register all cluster valve to host or engine
  • register,
  • registerClusterValve,
  • registerMember,
  • send,
  • setState,
  • unregister,
  • unregisterClusterValve,
  • unregisterMember,
  • findClusterListeners

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • onCreateOptionsMenu (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now