org.apache.axis2.clustering.tribes
Class ChannelListener

java.lang.Object
  extended by org.apache.axis2.clustering.tribes.ChannelListener
All Implemented Interfaces:
org.apache.catalina.tribes.ChannelListener

public class ChannelListener
extends java.lang.Object
implements org.apache.catalina.tribes.ChannelListener


Constructor Summary
ChannelListener(ConfigurationContext configurationContext, DefaultConfigurationManager configurationManager, DefaultContextManager contextManager, ControlCommandProcessor controlCommandProcessor)
           
 
Method Summary
 boolean accept(java.io.Serializable msg, org.apache.catalina.tribes.Member sender)
          Invoked by the channel to determine if the listener will process this message or not.
 void messageReceived(java.io.Serializable msg, org.apache.catalina.tribes.Member sender)
          Receive a message from the channel
 void setConfigurationContext(ConfigurationContext configurationContext)
           
 void setConfigurationManager(DefaultConfigurationManager configurationManager)
           
 void setContextManager(DefaultContextManager contextManager)
           
 
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
 

Constructor Detail

ChannelListener

public ChannelListener(ConfigurationContext configurationContext,
                       DefaultConfigurationManager configurationManager,
                       DefaultContextManager contextManager,
                       ControlCommandProcessor controlCommandProcessor)
Method Detail

setContextManager

public void setContextManager(DefaultContextManager contextManager)

setConfigurationManager

public void setConfigurationManager(DefaultConfigurationManager configurationManager)

setConfigurationContext

public void setConfigurationContext(ConfigurationContext configurationContext)

accept

public boolean accept(java.io.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 - Serializable
sender - Member
Returns:
boolean

messageReceived

public void messageReceived(java.io.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 - Serializable
sender - - the source of the message


Copyright ? 2007 Apache Web Services Project. All Rights Reserved.