org.mmbase.clustering.jgroups
Class Multicast
java.lang.Object
org.mmbase.clustering.ClusterManager
org.mmbase.clustering.jgroups.Multicast
- All Implemented Interfaces:
- Runnable, AllEventListener, EventListener
public class Multicast
- extends ClusterManager
Multicast is a thread object that reads the receive queue and spawns them to
call the objects (listeners) who need to know. The Multicast start two
threads to handle the sending and receiving of multicast messages. This is
the version that uses JavaGroups (JGroups) to ensure reliable delivery of
multicast messages.
See http://www.jgroups.org/ for more
information on JGroups.
- Version:
- $Id: Multicast.java 35335 2009-05-21 08:14:41Z michiel $
- Author:
- Daniel Ockeloen, Rico Jansen, Nico Klasens, Costyn van Dongen, Ronald Wildenberg
- See Also:
ChangesSender,
ChangesReceiver
|
Field Summary |
static String |
CONFIG_FILE
Field containing the configuration file with the various options that
can be specified for configuring the JGroups channel |
CONFIG_FILE
public static final String CONFIG_FILE
- Field containing the configuration file with the various options that
can be specified for configuring the JGroups channel
- See Also:
- Constant Field Values
Multicast
public Multicast()
readConfiguration
protected void readConfiguration(Map<String,String> configuration)
- Read configuration settings
- Overrides:
readConfiguration in class ClusterManager
- Parameters:
configuration - read from config resource- Since:
- MMBase-1.8.1
startCommunicationThreads
protected void startCommunicationThreads()
- Starts the ChangesSender and MulticastChangerReciever threads,
which handle the sending and recieving of messages on the channel in
seaparate threads.
- Specified by:
startCommunicationThreads in class ClusterManager
stopCommunicationThreads
protected void stopCommunicationThreads()
- Description copied from class:
ClusterManager
- Subclasses should stop the communication threads in this method
- Specified by:
stopCommunicationThreads in class ClusterManager
toString
public String toString()
- Overrides:
toString in class Object
MMBase2 Clustering 2.0-SNAPSHOT - 2013-05-29T22:18