org.apache.catalina.ha.session

Class JvmRouteSessionIDBinderListener

public class JvmRouteSessionIDBinderListener extends ClusterListener

Receive SessionID cluster change from other backup node after primary session node is failed.

Version: $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (Tue, 24 Oct 2006) $

Author: Peter Rossbach

Field Summary
protected static Stringinfo
The descriptive information about this implementation.
protected booleanstarted
Constructor Summary
JvmRouteSessionIDBinderListener()
Method Summary
booleanaccept(ClusterMessage msg)
Accept only SessionIDMessages
StringgetInfo()
Return descriptive information about this implementation.
longgetNumberOfSessions()
voidmessageReceived(ClusterMessage msg)
Callback from the cluster, when a message is received, The cluster will broadcast it invoking the messageReceived on the receiver.
voidstart()
Add this Mover as Cluster Listener ( receiver)
voidstop()
Remove this from Cluster Listener

Field Detail

info

protected static final String info
The descriptive information about this implementation.

started

protected boolean started

Constructor Detail

JvmRouteSessionIDBinderListener

public JvmRouteSessionIDBinderListener()

Method Detail

accept

public boolean accept(ClusterMessage msg)
Accept only SessionIDMessages

Parameters: msg ClusterMessage

Returns: boolean - returns true to indicate that messageReceived should be invoked. If false is returned, the messageReceived method will not be invoked.

getInfo

public String getInfo()
Return descriptive information about this implementation.

getNumberOfSessions

public long getNumberOfSessions()

Returns: Returns the numberOfSessions.

messageReceived

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.

Parameters: msg ClusterMessage - the message received from the cluster

start

public void start()
Add this Mover as Cluster Listener ( receiver)

Throws: LifecycleException

stop

public void stop()
Remove this from Cluster Listener

Throws: LifecycleException

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.