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.
-
Constructor Summary
ConstructorsConstructorDescriptionAxis2ChannelListener(org.apache.axis2.context.ConfigurationContext configurationContext, DefaultNodeManager nodeManager, DefaultStateManager stateManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(Serializable msg, org.apache.catalina.tribes.Member sender) Invoked by the channel to determine if the listener will process this message or not.voidmessageReceived(Serializable msg, org.apache.catalina.tribes.Member sender) Receive a message from the channelvoidsetConfigurationContext(org.apache.axis2.context.ConfigurationContext configurationContext) voidsetNodeManager(DefaultNodeManager nodeManager) voidsetStateManager(DefaultStateManager stateManager)
-
Constructor Details
-
Axis2ChannelListener
public Axis2ChannelListener(org.apache.axis2.context.ConfigurationContext configurationContext, DefaultNodeManager nodeManager, DefaultStateManager stateManager)
-
-
Method Details
-
setStateManager
-
setNodeManager
-
setConfigurationContext
public void setConfigurationContext(org.apache.axis2.context.ConfigurationContext configurationContext) -
accept
Invoked by the channel to determine if the listener will process this message or not.- Specified by:
acceptin interfaceorg.apache.catalina.tribes.ChannelListener- Parameters:
msg- Serializablesender- Member- Returns:
- boolean
-
messageReceived
Receive a message from the channel- Specified by:
messageReceivedin interfaceorg.apache.catalina.tribes.ChannelListener- Parameters:
msg- Serializablesender- - the source of the message
-