eu.reservoir.monitoring.distribution.udp
Class UDPTransmitter

java.lang.Object
  extended by eu.reservoir.monitoring.distribution.udp.UDPTransmitter

public class UDPTransmitter
extends java.lang.Object

This is a UDP transmitter for monitoring messages


Constructor Summary
UDPTransmitter(Transmitting transmitting, java.net.InetSocketAddress dstAddr)
          Construct a transmitter for a particular IP address
 
Method Summary
 void connect()
          Connect to the remote address now
 void end()
          End the connection to the remote address now
 int transmit(java.io.ByteArrayOutputStream byteStream, int id)
          Send a message to UDP address, with a given id.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPTransmitter

public UDPTransmitter(Transmitting transmitting,
                      java.net.InetSocketAddress dstAddr)
               throws java.io.IOException
Construct a transmitter for a particular IP address

Throws:
java.io.IOException
Method Detail

connect

public void connect()
             throws java.io.IOException
Connect to the remote address now

Throws:
java.io.IOException

end

public void end()
         throws java.io.IOException
End the connection to the remote address now

Throws:
java.io.IOException

transmit

public int transmit(java.io.ByteArrayOutputStream byteStream,
                    int id)
             throws java.io.IOException
Send a message to UDP address, with a given id.

Throws:
java.io.IOException


RESERVOIR Monitoring 0.6.4