|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.reservoir.monitoring.distribution.udp.AbstractUDPDataPlaneProducer
public abstract class AbstractUDPDataPlaneProducer
An AbstractUDPDataPlaneProducer 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 | |
---|---|
AbstractUDPDataPlaneProducer(java.net.InetSocketAddress addr)
Construct an AbstractUDPDataPlaneProducer. |
Method Summary | |
---|---|
boolean |
announce()
Announce that the plane is up and running |
boolean |
connect()
Connect to a delivery mechansim. |
boolean |
dennounce()
Un-announce that the plane is up and running |
boolean |
disconnect()
Disconnect from a delivery mechansim. |
DataSourceDelegate |
getDataSourceDelegate()
Get the DataSourceDelegate this is a delegate for. |
Measurement |
report(Measurement m)
Receiver of a measurment, with an extra object that has context info |
int |
sendData(DataPlaneMessage dpm)
Send a message. |
boolean |
sentData(int id)
This method is called just after a message has been sent to the underlying transport. |
DataSourceDelegate |
setDataSourceDelegate(DataSourceDelegate ds)
Set the DataSourceDelegate this is a delegate for. |
abstract int |
transmit(DataPlaneMessage dsp)
Send a message onto the address. |
boolean |
transmitted(int id)
This method is called just after a message has been sent to the underlying transport. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractUDPDataPlaneProducer(java.net.InetSocketAddress addr)
Method Detail |
---|
public boolean connect()
connect
in interface Plane
public boolean disconnect()
disconnect
in interface Plane
public boolean announce()
announce
in interface Plane
public boolean dennounce()
dennounce
in interface Plane
public abstract int transmit(DataPlaneMessage dsp) throws java.lang.Exception
transmit
in interface Transmitting
java.lang.Exception
public boolean transmitted(int id)
transmitted
in interface Transmitting
public int sendData(DataPlaneMessage dpm) throws java.lang.Exception
sendData
in interface DataService
java.lang.Exception
public boolean sentData(int id)
sentData
in interface DataService
public Measurement report(Measurement m)
report
in interface MeasurementReceiver
public DataSourceDelegate getDataSourceDelegate()
getDataSourceDelegate
in interface DataSourceDelegateInteracter
public DataSourceDelegate setDataSourceDelegate(DataSourceDelegate ds)
setDataSourceDelegate
in interface DataSourceDelegateInteracter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |