org.apache.catalina.ha.session
public class JvmRouteSessionIDBinderListener extends ClusterListener
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
info
The descriptive information about this implementation.
|
protected boolean |
started |
cluster, log, sm
Constructor and Description |
---|
JvmRouteSessionIDBinderListener() |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(ClusterMessage msg)
Accept only SessionIDMessages
|
java.lang.String |
getInfo()
Return descriptive information about this implementation.
|
long |
getNumberOfSessions() |
void |
messageReceived(ClusterMessage msg)
Callback from the cluster, when a message is received, The cluster will
broadcast it invoking the messageReceived on the receiver.
|
void |
start()
Add this Mover as Cluster Listener ( receiver)
|
void |
stop()
Remove this from Cluster Listener
|
accept, equals, getCluster, hashCode, messageReceived, setCluster
protected static final java.lang.String info
protected boolean started
public java.lang.String getInfo()
public long getNumberOfSessions()
public void start() throws LifecycleException
LifecycleException
public void stop() throws LifecycleException
LifecycleException
public void messageReceived(ClusterMessage msg)
messageReceived
in class ClusterListener
msg
- ClusterMessage - the message received from the clusterpublic boolean accept(ClusterMessage msg)
accept
in class ClusterListener
msg
- ClusterMessageCopyright © 2000-2014 Apache Software Foundation. All Rights Reserved.