eu.reservoir.monitoring.distribution.udp
Class UDPDataPlaneProducerWithNames

java.lang.Object
  extended by eu.reservoir.monitoring.distribution.udp.AbstractUDPDataPlaneProducer
      extended by eu.reservoir.monitoring.distribution.udp.UDPDataPlaneProducerWithNames
All Implemented Interfaces:
DataSourceDelegateInteracter, MeasurementReceiver, DataPlane, DataService, Plane, Transmitting
Direct Known Subclasses:
UDPDataPlaneProducer

public class UDPDataPlaneProducerWithNames
extends AbstractUDPDataPlaneProducer
implements DataPlane, DataSourceDelegateInteracter, Transmitting

A UDPDataPlaneProducerWithNames is a DataPlane implementation that sends Measurements by UDP. It is also a DataSourceDelegateInteracter so it can, if needed, talk to the DataSource object it gets bound to.


Constructor Summary
UDPDataPlaneProducerWithNames(java.net.InetSocketAddress addr)
          Construct a UDPDataPlaneProducerWithNames
 
Method Summary
 int transmit(DataPlaneMessage dsp)
          Send a message onto the address.
 
Methods inherited from class eu.reservoir.monitoring.distribution.udp.AbstractUDPDataPlaneProducer
announce, connect, dennounce, disconnect, getDataSourceDelegate, report, sendData, sentData, setDataSourceDelegate, transmitted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface eu.reservoir.monitoring.core.plane.Plane
announce, connect, dennounce, disconnect
 
Methods inherited from interface eu.reservoir.monitoring.core.plane.DataService
sendData, sentData
 
Methods inherited from interface eu.reservoir.monitoring.core.MeasurementReceiver
report
 
Methods inherited from interface eu.reservoir.monitoring.core.DataSourceDelegateInteracter
getDataSourceDelegate, setDataSourceDelegate
 
Methods inherited from interface eu.reservoir.monitoring.distribution.Transmitting
transmitted
 

Constructor Detail

UDPDataPlaneProducerWithNames

public UDPDataPlaneProducerWithNames(java.net.InetSocketAddress addr)
Construct a UDPDataPlaneProducerWithNames

Method Detail

transmit

public int transmit(DataPlaneMessage dsp)
             throws java.lang.Exception
Send a message onto the address. The message is XDR encoded and it's structure is: +-------------------------------------------------------------------+ | data source id (long) | msg type (int) | seq no (int) | payload | +-------------------------------------------------------------------+

Specified by:
transmit in interface Transmitting
Specified by:
transmit in class AbstractUDPDataPlaneProducer
Throws:
java.lang.Exception


RESERVOIR Monitoring 0.6.4