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.Plane
public boolean disconnect()
disconnect
in interface eu.reservoir.monitoring.core.plane.Plane
public boolean announce()
announce
in interface eu.reservoir.monitoring.core.plane.Plane
public boolean dennounce()
dennounce
in interface eu.reservoir.monitoring.core.plane.Plane
public 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.Receiving
java.io.IOException
eu.reservoir.monitoring.core.TypeException
public void eof()
eof
in interface eu.reservoir.monitoring.distribution.Receiving
public void error(java.lang.Exception e)
error
in interface eu.reservoir.monitoring.distribution.Receiving
public int sendData(eu.reservoir.monitoring.core.plane.DataPlaneMessage dpm) throws java.lang.Exception
sendData
in interface eu.reservoir.monitoring.core.plane.DataService
java.lang.Exception
public boolean sentData(int id)
sentData
in interface eu.reservoir.monitoring.core.plane.DataService
public eu.reservoir.monitoring.core.Measurement report(eu.reservoir.monitoring.core.Measurement m)
report
in interface eu.reservoir.monitoring.core.MeasurementReceiver
public java.lang.Object setMeasurementReceiver(eu.reservoir.monitoring.core.MeasurementReceiver mr)
setMeasurementReceiver
in interface eu.reservoir.monitoring.core.MeasurementReporting
User Space Routing 0.10.3