public interface EdgePortService extends ListenerService<EdgePortEvent,EdgePortListener>
Modifier and Type | Method and Description |
---|---|
void |
emitPacket(java.nio.ByteBuffer data,
java.util.Optional<TrafficTreatment> treatment)
Emits the specified packet, with optional treatment to all edge ports.
|
void |
emitPacket(DeviceId deviceId,
java.nio.ByteBuffer data,
java.util.Optional<TrafficTreatment> treatment)
Emits the specified packet, with optional treatment to all edge ports.
|
java.lang.Iterable<ConnectPoint> |
getEdgePoints()
Returns a collection of all edge point within the current topology.
|
java.lang.Iterable<ConnectPoint> |
getEdgePoints(DeviceId deviceId)
Returns a collection of all edge point for the specified device.
|
boolean |
isEdgePoint(ConnectPoint point)
Indicates whether or not the specified connection point is an edge point.
|
addListener, removeListener
boolean isEdgePoint(ConnectPoint point)
point
- connection pointjava.lang.Iterable<ConnectPoint> getEdgePoints()
java.lang.Iterable<ConnectPoint> getEdgePoints(DeviceId deviceId)
deviceId
- device identifiervoid emitPacket(java.nio.ByteBuffer data, java.util.Optional<TrafficTreatment> treatment)
data
- packet datatreatment
- optional traffic treatment to apply to the packetvoid emitPacket(DeviceId deviceId, java.nio.ByteBuffer data, java.util.Optional<TrafficTreatment> treatment)
deviceId
- device where to send the packet outdata
- packet datatreatment
- optional traffic treatment to apply to the packet