org.apache.catalina.ha.session

Class ClusterSessionListener

public class ClusterSessionListener extends ClusterListener

Receive replicated SessionMessage form other cluster node.

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

Author: Filip Hanik Peter Rossbach

Field Summary
protected static Stringinfo
The descriptive information about this implementation.
Constructor Summary
ClusterSessionListener()
Method Summary
booleanaccept(ClusterMessage msg)
Accept only SessionMessage
StringgetInfo()
Return descriptive information about this implementation.
voidmessageReceived(ClusterMessage myobj)
Callback from the cluster, when a message is received, The cluster will broadcast it invoking the messageReceived on the receiver.

Field Detail

info

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

Constructor Detail

ClusterSessionListener

public ClusterSessionListener()

Method Detail

accept

public boolean accept(ClusterMessage msg)
Accept only SessionMessage

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.

messageReceived

public void messageReceived(ClusterMessage myobj)
Callback from the cluster, when a message is received, The cluster will broadcast it invoking the messageReceived on the receiver.

Parameters: myobj ClusterMessage - the message received from the cluster

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