Save This Page
Home » apache-tomcat-6.0.16-src » org.apache » catalina » ha » session » [javadoc | source]
org.apache.catalina.ha.session
public class: JvmRouteSessionIDBinderListener [javadoc | source]
java.lang.Object
   org.apache.catalina.ha.ClusterListener
      org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener

All Implemented Interfaces:
    ChannelListener

Receive SessionID cluster change from other backup node after primary session node is failed.
Field Summary
protected static final  String info    The descriptive information about this implementation. 
protected  boolean started     
Fields inherited from org.apache.catalina.ha.ClusterListener:
log,  sm,  cluster
Constructor:
 public JvmRouteSessionIDBinderListener() 
Method from org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener Summary:
accept,   getInfo,   getNumberOfSessions,   messageReceived,   start,   stop
Methods from org.apache.catalina.ha.ClusterListener:
accept,   accept,   equals,   getCluster,   hashCode,   messageReceived,   messageReceived,   setCluster
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener Detail:
 public boolean accept(ClusterMessage msg) 
    Accept only SessionIDMessages
 public String getInfo() 
    Return descriptive information about this implementation.
 public long getNumberOfSessions() 
 public  void messageReceived(ClusterMessage msg) 
    Callback from the cluster, when a message is received, The cluster will broadcast it invoking the messageReceived on the receiver.
 public  void start() throws LifecycleException 
    Add this Mover as Cluster Listener ( receiver)
 public  void stop() throws LifecycleException 
    Remove this from Cluster Listener