Class DropTestRpcSender
- java.lang.Object
-
- org.opendaylight.openflowplugin.testcommon.DropTestRpcSender
-
- All Implemented Interfaces:
AutoCloseable,EventListener,PacketProcessingListener,org.opendaylight.yangtools.yang.binding.NotificationListener
public class DropTestRpcSender extends Object
Provides cbench responder behavior: upon packetIn arrival addFlow action is sent out to device usingSalFlowServicestrategy.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.opendaylight.yangtools.yang.common.Uint32BUFFER_IDprotected intftrFailedprotected intftrSuccessprotected static org.opendaylight.yangtools.yang.common.Uint16HARD_TIMEOUTprotected static org.opendaylight.yangtools.yang.common.Uint16IDLE_TIMEOUTprotected static org.opendaylight.yangtools.yang.common.Uint16PRIORITYprotected static AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>RPC_FUTURE_FAIL_UPDATERprotected static AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>RPC_FUTURE_SUCCESS_UPDATERprotected static AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>RUNABLES_EXECUTEDprotected static AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>RUNABLES_REJECTEDprotected intrunablesExecutedprotected intrunablesRejectedprotected static org.opendaylight.yangtools.yang.common.Uint8TABLE_ID
-
Constructor Summary
Constructors Constructor Description DropTestRpcSender()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearStats()voidclose()voidcountFutureError()voidcountFutureSuccess()DropTestStatsgetStats()voidonPacketReceived(PacketReceived notification)Delivery of incoming packet wrapped in openflow structure.protected voidprocessPacket(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> node, Match match, Instructions instructions)voidsetFlowService(SalFlowService flowService)voidsetNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService)voidstart()Start listening on packetIn.
-
-
-
Field Detail
-
PRIORITY
protected static final org.opendaylight.yangtools.yang.common.Uint16 PRIORITY
-
BUFFER_ID
protected static final org.opendaylight.yangtools.yang.common.Uint32 BUFFER_ID
-
HARD_TIMEOUT
protected static final org.opendaylight.yangtools.yang.common.Uint16 HARD_TIMEOUT
-
IDLE_TIMEOUT
protected static final org.opendaylight.yangtools.yang.common.Uint16 IDLE_TIMEOUT
-
TABLE_ID
protected static final org.opendaylight.yangtools.yang.common.Uint8 TABLE_ID
-
RPC_FUTURE_SUCCESS_UPDATER
protected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest> RPC_FUTURE_SUCCESS_UPDATER
-
ftrSuccess
protected volatile int ftrSuccess
-
RPC_FUTURE_FAIL_UPDATER
protected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest> RPC_FUTURE_FAIL_UPDATER
-
ftrFailed
protected volatile int ftrFailed
-
RUNABLES_EXECUTED
protected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest> RUNABLES_EXECUTED
-
runablesExecuted
protected volatile int runablesExecuted
-
RUNABLES_REJECTED
protected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest> RUNABLES_REJECTED
-
runablesRejected
protected volatile int runablesRejected
-
-
Method Detail
-
setFlowService
public void setFlowService(SalFlowService flowService)
-
start
public void start()
Start listening on packetIn.
-
processPacket
protected void processPacket(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> node, Match match, Instructions instructions)
-
setNotificationService
public void setNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService)
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
getStats
public final DropTestStats getStats()
-
clearStats
public final void clearStats()
-
onPacketReceived
public final void onPacketReceived(PacketReceived notification)
Description copied from interface:PacketProcessingListenerDelivery of incoming packet wrapped in openflow structure.- Specified by:
onPacketReceivedin interfacePacketProcessingListener
-
countFutureSuccess
public void countFutureSuccess()
-
countFutureError
public void countFutureError()
-
-