Package org.onosproject.net.packet
Interface PacketStore
-
- All Superinterfaces:
Store<PacketEvent,PacketStoreDelegate>
public interface PacketStore extends Store<PacketEvent,PacketStoreDelegate>
Manages routing of outbound packets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
cancelPackets(PacketRequest request)
Cancels intercept of packets that match the given selector.void
emit(OutboundPacket packet)
Decides which instance should emit the packet and forwards the packet to that instance.List<PacketRequest>
existingRequests()
Obtains all existing requests in the system.void
requestPackets(PacketRequest request)
Requests intercept of packets that match the given selector.-
Methods inherited from interface org.onosproject.store.Store
hasDelegate, setDelegate, unsetDelegate
-
-
-
-
Method Detail
-
emit
void emit(OutboundPacket packet)
Decides which instance should emit the packet and forwards the packet to that instance. The relevant PacketManager is notified via the PacketStoreDelegate that it should emit the packet.- Parameters:
packet
- the packet to emit
-
requestPackets
void requestPackets(PacketRequest request)
Requests intercept of packets that match the given selector.- Parameters:
request
- a packet request
-
cancelPackets
void cancelPackets(PacketRequest request)
Cancels intercept of packets that match the given selector.- Parameters:
request
- a packet request
-
existingRequests
List<PacketRequest> existingRequests()
Obtains all existing requests in the system.- Returns:
- list of packet requests in order of priority
-
-