Constructor and Description |
---|
PacketInEvent(VTNPacketListener l,
PacketInEvent ev)
Create a copy of the given event for the given listener.
|
PacketInEvent(VTNPacketListener l,
org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived rcv,
SalPort ingress)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
Ethernet |
getEthernet()
Return a
Ethernet instance which represents the received
packet. |
SalPort |
getIngressPort()
Return a
SalPort instance which specifies the ingress switch
port. |
protected void |
notifyEvent()
Notify this event to event listener.
|
execute, getTxContext, isAsync, onFailure
addBackgroundTask, execute, getBackgroundTasks, getMaxRetry, onSuccess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
needErrorLog
public PacketInEvent(VTNPacketListener l, org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketReceived rcv, SalPort ingress) throws PacketException
l
- A VTNPacketListener
instance.rcv
- A PacketReceived
instance notified by MD-SAL.ingress
- A SalPort
instance which indicates the
ingress switch port.PacketException
- Received packet is broken.IllegalArgumentException
- The given packet is not supprted.public PacketInEvent(VTNPacketListener l, PacketInEvent ev)
l
- A VTNPacketListener
instance.ev
- A PacketInEvent
instance.public SalPort getIngressPort()
SalPort
instance which specifies the ingress switch
port.SalPort
instance.public Ethernet getEthernet()
Ethernet
instance which represents the received
packet.Ethernet
instance.protected void notifyEvent() throws VTNException
notifyEvent
in class TxEvent
VTNException
- An error occurred.Copyright © 2018 OpenDaylight. All rights reserved.