public interface PacketService
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessor(PacketProcessor processor,
int priority)
Adds the specified processor to the list of packet processors.
|
void |
emit(OutboundPacket packet)
Emits the specified outbound packet onto the network.
|
void |
removeProcessor(PacketProcessor processor)
Removes the specified processor from the processing pipeline.
|
void |
requestPackets(TrafficSelector selector,
PacketPriority priority,
ApplicationId appId)
Requests that packets matching the given selector are punted from the
dataplane to the controller.
|
void |
requestPackets(TrafficSelector selector,
PacketPriority priority,
ApplicationId appId,
FlowRule.Type tableType)
Requests that packets matching the given selector are punted from the
dataplane to the controller.
|
void addProcessor(PacketProcessor processor, int priority)
processor - processor to be addedpriority - priority in the reverse natural orderIllegalArgumentException - if a processor with the
given priority already existsvoid removeProcessor(PacketProcessor processor)
processor - packet processorvoid requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId)
selector - the traffic selector used to match packetspriority - the priority of the ruleappId - the application ID of the requestervoid requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId, FlowRule.Type tableType)
selector - the traffic selector used to match packetspriority - the priority of the ruleappId - the application ID of the requestertableType - the abstract table Type in the dataplane where flowrules
should be inserted to punt the selector packets to the
control planevoid emit(OutboundPacket packet)
packet - outbound packetCopyright © 2015. All rights reserved.