org.mmbase.clustering.multicast
Class ChangesSender
java.lang.Object
org.mmbase.clustering.multicast.ChangesSender
- All Implemented Interfaces:
- Runnable
public class ChangesSender
- extends Object
- implements Runnable
ChangesSender is a thread object sending the nodes found in the
sending queue over the multicast 'channel'
- Version:
- $Id: ChangesSender.java 43059 2010-08-06 09:11:04Z michiel $
- Author:
- Daniel Ockeloen, Rico Jansen, Nico Klasens
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChangesSender
public ChangesSender(String multicastHost,
int mport,
int mTTL,
BlockingQueue<byte[]> nodesToSend,
Statistics send)
throws UnknownHostException
- Construct MultiCast Sender
- Parameters:
multicastHost - 'channel' of the multicastmport - port of the multicastmTTL - time-to-live of the multicast packet (0-255)nodesToSend - Queue of messages to sendsend - Statistics object in which to administer duration costs
- Throws:
UnknownHostException - when multicastHost is not found
start
public void start()
stop
void stop()
getSocket
public MulticastSocket getSocket()
run
public void run()
- Specified by:
run in interface Runnable
MMBase 2.0-SNAPSHOT - null