org.apache.axis2.clustering.tribes
Class Axis2ChannelListener
java.lang.Object
org.apache.axis2.clustering.tribes.Axis2ChannelListener
- All Implemented Interfaces:
- org.apache.catalina.tribes.ChannelListener
public class Axis2ChannelListener
- extends Object
- implements org.apache.catalina.tribes.ChannelListener
This is the Tribes channel listener which is used for listening on the channels, receiving
messages & accepting messages.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.catalina.tribes.ChannelListener |
equals, hashCode |
Axis2ChannelListener
public Axis2ChannelListener(ConfigurationContext configurationContext,
DefaultNodeManager nodeManager,
DefaultStateManager stateManager)
setStateManager
public void setStateManager(DefaultStateManager stateManager)
setNodeManager
public void setNodeManager(DefaultNodeManager nodeManager)
setConfigurationContext
public void setConfigurationContext(ConfigurationContext configurationContext)
accept
public boolean accept(Serializable msg,
org.apache.catalina.tribes.Member sender)
- Invoked by the channel to determine if the listener will process this message or not.
- Specified by:
accept
in interface org.apache.catalina.tribes.ChannelListener
- Parameters:
msg
- Serializablesender
- Member
- Returns:
- boolean
messageReceived
public void messageReceived(Serializable msg,
org.apache.catalina.tribes.Member sender)
- Receive a message from the channel
- Specified by:
messageReceived
in interface org.apache.catalina.tribes.ChannelListener
- Parameters:
msg
- Serializablesender
- - the source of the message
Copyright © 2004-2011 The Apache Software Foundation. All Rights Reserved.