@Test public void packetProviderfallbackBasics() { OutboundPacket packet = new DefaultOutboundPacket(FOO_DID, DefaultTrafficTreatment.emptyTreatment(), ByteBuffer.allocate(5)); mgr.emit(packet); assertEquals("Packet not emitted correctly", packet, emittedPacket); }
@Override public void emit(OutboundPacket packet) { checkPermission(PACKET_WRITE); checkNotNull(packet, "Packet cannot be null"); store.emit(packet); }
PacketManager extends AbstractProviderRegistry<PacketProvider, PacketProviderService> implements PacketService, PacketProviderRegistry { @Override public void emit(OutboundPacket packet) { checkPermission(PACKET_WRITE); checkNotNull(packet, "Packet cannot be null"); store.emit(packet); } }
PacketManager extends AbstractProviderRegistry<PacketProvider, PacketProviderService> implements PacketService, PacketProviderRegistry { @Override public void emit(OutboundPacket packet) { checkPermission(PACKET_WRITE); checkNotNull(packet, "Packet cannot be null"); store.emit(packet); }  }
PacketManager extends AbstractProviderRegistry<PacketProvider, PacketProviderService> implements PacketService, PacketProviderRegistry { @Override public void emit(OutboundPacket packet) { checkPermission(PACKET_WRITE); checkNotNull(packet, "Packet cannot be null"); store.emit(packet); }  @Activate void activate(); @Deactivate void deactivate(); @Override void addProcessor(PacketProcessor processor, int priority); @Override void removeProcessor(PacketProcessor processor); @Override List<PacketProcessorEntry> getProcessors(); @Override void requestPackets(TrafficSelector selector, PacketPriority priority,
                               ApplicationId appId); @Override void requestPackets(TrafficSelector selector, PacketPriority priority,
                               ApplicationId appId, Optional<DeviceId> deviceId); @Override void cancelPackets(TrafficSelector selector, PacketPriority priority,
                              ApplicationId appId); @Override void cancelPackets(TrafficSelector selector, PacketPriority priority,
                              ApplicationId appId, Optional<DeviceId> deviceId); @Override List<PacketRequest> getRequests(); @Override void emit(OutboundPacket packet); }
PacketManager extends AbstractProviderRegistry<PacketProvider, PacketProviderService> implements PacketService, PacketProviderRegistry { @Override public void emit(OutboundPacket packet) { checkPermission(PACKET_WRITE); checkNotNull(packet, "Packet cannot be null"); store.emit(packet); }  @Activate void activate(); @Deactivate void deactivate(); @Override void addProcessor(PacketProcessor processor, int priority); @Override void removeProcessor(PacketProcessor processor); @Override List<PacketProcessorEntry> getProcessors(); @Override void requestPackets(TrafficSelector selector, PacketPriority priority,
                               ApplicationId appId); @Override void requestPackets(TrafficSelector selector, PacketPriority priority,
                               ApplicationId appId, Optional<DeviceId> deviceId); @Override void cancelPackets(TrafficSelector selector, PacketPriority priority,
                              ApplicationId appId); @Override void cancelPackets(TrafficSelector selector, PacketPriority priority,
                              ApplicationId appId, Optional<DeviceId> deviceId); @Override List<PacketRequest> getRequests(); @Override void emit(OutboundPacket packet);  }