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 SummaryFields Modifier and Type Field Description protected static LongBUFFER_IDprotected intftrFailedprotected intftrSuccessprotected static IntegerHARD_TIMEOUTprotected static IntegerIDLE_TIMEOUTprotected static IntegerPRIORITYprotected 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 shortTABLE_ID
 - 
Constructor SummaryConstructors Constructor Description DropTestRpcSender()
 - 
Method SummaryAll 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- 
PRIORITYprotected static final Integer PRIORITY 
 - 
BUFFER_IDprotected static final Long BUFFER_ID 
 - 
HARD_TIMEOUTprotected static final Integer HARD_TIMEOUT 
 - 
IDLE_TIMEOUTprotected static final Integer IDLE_TIMEOUT 
 - 
TABLE_IDprotected static final short TABLE_ID - See Also:
- Constant Field Values
 
 - 
RPC_FUTURE_SUCCESS_UPDATERprotected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest> RPC_FUTURE_SUCCESS_UPDATER 
 - 
ftrSuccessprotected volatile int ftrSuccess 
 - 
RPC_FUTURE_FAIL_UPDATERprotected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest> RPC_FUTURE_FAIL_UPDATER 
 - 
ftrFailedprotected volatile int ftrFailed 
 - 
RUNABLES_EXECUTEDprotected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest> RUNABLES_EXECUTED 
 - 
runablesExecutedprotected volatile int runablesExecuted 
 - 
RUNABLES_REJECTEDprotected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest> RUNABLES_REJECTED 
 - 
runablesRejectedprotected volatile int runablesRejected 
 
- 
 - 
Method Detail- 
setFlowServicepublic void setFlowService(SalFlowService flowService) 
 - 
startpublic void start() Start listening on packetIn.
 - 
processPacketprotected void processPacket(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> node, Match match, Instructions instructions)
 - 
setNotificationServicepublic void setNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService) 
 - 
closepublic void close() - Specified by:
- closein interface- AutoCloseable
 
 - 
getStatspublic final DropTestStats getStats() 
 - 
clearStatspublic final void clearStats() 
 - 
onPacketReceivedpublic final void onPacketReceived(PacketReceived notification) Description copied from interface:PacketProcessingListenerDelivery of incoming packet wrapped in openflow structure.- Specified by:
- onPacketReceivedin interface- PacketProcessingListener
 
 - 
countFutureSuccesspublic void countFutureSuccess() 
 - 
countFutureErrorpublic void countFutureError() 
 
- 
 
-