public interface EdgePortService extends ListenerService<EdgePortEvent,EdgePortListener>
Modifier and Type | Method and Description |
---|---|
void |
emitPacket(ByteBuffer data,
Optional<TrafficTreatment> treatment)
Emits the specified packet, with optional treatment to all edge ports.
|
void |
emitPacket(DeviceId deviceId,
ByteBuffer data,
Optional<TrafficTreatment> treatment)
Emits the specified packet, with optional treatment to all edge ports.
|
Iterable<ConnectPoint> |
getEdgePoints()
Returns a collection of all edge point within the current topology.
|
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 pointIterable<ConnectPoint> getEdgePoints()
Iterable<ConnectPoint> getEdgePoints(DeviceId deviceId)
deviceId
- device identifiervoid emitPacket(ByteBuffer data, Optional<TrafficTreatment> treatment)
data
- packet datatreatment
- optional traffic treatment to apply to the packetvoid emitPacket(DeviceId deviceId, ByteBuffer data, Optional<TrafficTreatment> treatment)
deviceId
- device where to send the packet outdata
- packet datatreatment
- optional traffic treatment to apply to the packet