eu.reservoir.monitoring.distribution.udp
Class UDPReceiver

java.lang.Object
  extended by eu.reservoir.monitoring.distribution.udp.UDPReceiver
All Implemented Interfaces:
java.lang.Runnable

public class UDPReceiver
extends java.lang.Object
implements java.lang.Runnable

This is a UDP receiver for monitoring messages.


Constructor Summary
UDPReceiver(Receiving receiver, java.net.InetSocketAddress ipAddr)
          Construct a receiver for a particular IP address
 
Method Summary
 void end()
          Leave the address now and stop listening
 void listen()
          Join the address now and start listening
protected  boolean receive()
          Receive a message from the multicast address.
 void run()
          The Runnable body
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPReceiver

public UDPReceiver(Receiving receiver,
                   java.net.InetSocketAddress ipAddr)
            throws java.io.IOException
Construct a receiver for a particular IP address

Throws:
java.io.IOException
Method Detail

listen

public void listen()
            throws java.io.IOException
Join the address now and start listening

Throws:
java.io.IOException

end

public void end()
         throws java.io.IOException
Leave the address now and stop listening

Throws:
java.io.IOException

receive

protected boolean receive()
Receive a message from the multicast address.


run

public void run()
The Runnable body

Specified by:
run in interface java.lang.Runnable


RESERVOIR Monitoring 0.6.4