|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.ha.ClusterListener
public abstract class ClusterListener
Receive SessionID cluster change from other backup node after primary session node is failed.
Field Summary | |
---|---|
protected CatalinaCluster |
cluster
|
static Log |
log
|
protected StringManager |
sm
The string manager for this package. |
Constructor Summary | |
---|---|
ClusterListener()
|
Method Summary | |
---|---|
abstract boolean |
accept(ClusterMessage msg)
Accept only SessionIDMessages |
boolean |
accept(java.io.Serializable msg,
Member member)
Invoked by the channel to determine if the listener will process this message or not. |
boolean |
equals(java.lang.Object listener)
|
CatalinaCluster |
getCluster()
|
int |
hashCode()
|
abstract 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 |
messageReceived(java.io.Serializable msg,
Member member)
Receive a message from the channel |
void |
setCluster(CatalinaCluster cluster)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Log log
protected StringManager sm
protected CatalinaCluster cluster
Constructor Detail |
---|
public ClusterListener()
Method Detail |
---|
public CatalinaCluster getCluster()
public void setCluster(CatalinaCluster cluster)
public boolean equals(java.lang.Object listener)
equals
in interface ChannelListener
equals
in class java.lang.Object
listener
- Object
Object.equals(Object)
public int hashCode()
hashCode
in interface ChannelListener
hashCode
in class java.lang.Object
Object.hashCode()
public final void messageReceived(java.io.Serializable msg, Member member)
ChannelListener
messageReceived
in interface ChannelListener
msg
- Serializablemember
- - the source of the messagepublic final boolean accept(java.io.Serializable msg, Member member)
ChannelListener
accept
in interface ChannelListener
msg
- Serializablemember
- Member
public abstract void messageReceived(ClusterMessage msg)
msg
- ClusterMessage - the message received from the clusterpublic abstract boolean accept(ClusterMessage msg)
msg
- ClusterMessage
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |