Search in sources :

Example 1 with PacketRequest

use of org.onosproject.net.packet.PacketRequest in project onos by opennetworkinglab.

the class PacketManager method cancelPackets.

@Override
public void cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId) {
    checkPermission(PACKET_READ);
    checkNotNull(selector, ERROR_NULL_SELECTOR);
    checkNotNull(appId, ERROR_NULL_APP_ID);
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, Optional.empty());
    store.cancelPackets(request);
}
Also used : PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Example 2 with PacketRequest

use of org.onosproject.net.packet.PacketRequest in project onos by opennetworkinglab.

the class PacketManager method cancelPackets.

@Override
public void cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId, Optional<DeviceId> deviceId) {
    checkPermission(PACKET_READ);
    checkNotNull(selector, ERROR_NULL_SELECTOR);
    checkNotNull(appId, ERROR_NULL_APP_ID);
    checkNotNull(deviceId, ERROR_NULL_DEVICE_ID);
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, deviceId);
    store.cancelPackets(request);
}
Also used : PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Example 3 with PacketRequest

use of org.onosproject.net.packet.PacketRequest in project onos by opennetworkinglab.

the class VirtualNetworkPacketManager method requestPackets.

@Override
public void requestPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId) {
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, Optional.empty());
    store.requestPackets(networkId(), request);
}
Also used : DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Example 4 with PacketRequest

use of org.onosproject.net.packet.PacketRequest in project onos by opennetworkinglab.

the class VirtualNetworkPacketManager method cancelPackets.

@Override
public void cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId) {
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, Optional.empty());
    store.cancelPackets(networkId(), request);
}
Also used : DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Example 5 with PacketRequest

use of org.onosproject.net.packet.PacketRequest in project onos by opennetworkinglab.

the class VirtualNetworkPacketManager method cancelPackets.

@Override
public void cancelPackets(TrafficSelector selector, PacketPriority priority, ApplicationId appId, Optional<DeviceId> deviceId) {
    PacketRequest request = new DefaultPacketRequest(selector, priority, appId, localNodeId, deviceId);
    store.cancelPackets(networkId(), request);
}
Also used : DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest) PacketRequest(org.onosproject.net.packet.PacketRequest) DefaultPacketRequest(org.onosproject.net.packet.DefaultPacketRequest)

Aggregations

PacketRequest (org.onosproject.net.packet.PacketRequest)10 DefaultPacketRequest (org.onosproject.net.packet.DefaultPacketRequest)8 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)1 ArrayNode (com.fasterxml.jackson.databind.node.ArrayNode)1 PacketService (org.onosproject.net.packet.PacketService)1