org.mmbase.clustering.multicast
Class ChangesSender

java.lang.Object
  extended by 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

Constructor Summary
ChangesSender(String multicastHost, int mport, int mTTL, BlockingQueue<byte[]> nodesToSend, Statistics send)
          Construct MultiCast Sender
 
Method Summary
 MulticastSocket getSocket()
           
 void run()
           
 void start()
           
(package private)  void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangesSender

public ChangesSender(String multicastHost,
                     int mport,
                     int mTTL,
                     BlockingQueue<byte[]> nodesToSend,
                     Statistics send)
              throws UnknownHostException
Construct MultiCast Sender

Parameters:
multicastHost - 'channel' of the multicast
mport - port of the multicast
mTTL - time-to-live of the multicast packet (0-255)
nodesToSend - Queue of messages to send
send - Statistics object in which to administer duration costs
Throws:
UnknownHostException - when multicastHost is not found
Method Detail

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