public abstract class AbstractUSRDataPlaneConsumer
extends java.lang.Object
implements eu.reservoir.monitoring.core.plane.DataPlane, eu.reservoir.monitoring.core.MeasurementReporting, eu.reservoir.monitoring.distribution.Receiving
| Constructor and Description |
|---|
AbstractUSRDataPlaneConsumer(SocketAddress addr)
Construct a AbstractUSRDataPlaneConsumer.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Dicconnect from a delivery mechansim.
|
void |
eof()
This method is called just after there has been EOF
in received from some underlying transport.
|
void |
error(java.lang.Exception e) |
abstract void |
received(java.io.ByteArrayInputStream bis,
eu.reservoir.monitoring.distribution.MetaData metaData)
This method is called just after a packet
has been received from some underlying transport
at a particular address.
|
eu.reservoir.monitoring.core.Measurement |
report(eu.reservoir.monitoring.core.Measurement m)
Receiver of a measurment, with an extra object that has context info
|
int |
sendData(eu.reservoir.monitoring.core.plane.DataPlaneMessage dpm)
Send a message.
|
boolean |
sentData(int id)
This method is called just after a message
has been sent to the underlying transport.
|
java.lang.Object |
setMeasurementReceiver(eu.reservoir.monitoring.core.MeasurementReceiver mr)
Set the object that will recieve the measurements.
|
public AbstractUSRDataPlaneConsumer(SocketAddress addr)
public boolean connect()
connect in interface eu.reservoir.monitoring.core.plane.Planepublic boolean disconnect()
disconnect in interface eu.reservoir.monitoring.core.plane.Planepublic boolean announce()
announce in interface eu.reservoir.monitoring.core.plane.Planepublic boolean dennounce()
dennounce in interface eu.reservoir.monitoring.core.plane.Planepublic abstract void received(java.io.ByteArrayInputStream bis,
eu.reservoir.monitoring.distribution.MetaData metaData)
throws java.io.IOException,
eu.reservoir.monitoring.core.TypeException
received in interface eu.reservoir.monitoring.distribution.Receivingjava.io.IOExceptioneu.reservoir.monitoring.core.TypeExceptionpublic void eof()
eof in interface eu.reservoir.monitoring.distribution.Receivingpublic void error(java.lang.Exception e)
error in interface eu.reservoir.monitoring.distribution.Receivingpublic int sendData(eu.reservoir.monitoring.core.plane.DataPlaneMessage dpm)
throws java.lang.Exception
sendData in interface eu.reservoir.monitoring.core.plane.DataServicejava.lang.Exceptionpublic boolean sentData(int id)
sentData in interface eu.reservoir.monitoring.core.plane.DataServicepublic eu.reservoir.monitoring.core.Measurement report(eu.reservoir.monitoring.core.Measurement m)
report in interface eu.reservoir.monitoring.core.MeasurementReceiverpublic java.lang.Object setMeasurementReceiver(eu.reservoir.monitoring.core.MeasurementReceiver mr)
setMeasurementReceiver in interface eu.reservoir.monitoring.core.MeasurementReportingUser Space Routing 0.10.3