Class DropTestCommiter
java.lang.Object
org.opendaylight.openflowplugin.testcommon.DropTestCommiter
- All Implemented Interfaces:
- AutoCloseable,- EventListener,- org.opendaylight.mdsal.binding.api.NotificationService.Listener<PacketReceived>
Provides cbench responder behavior: upon packetIn arrival addFlow action is sent out to
 device using dataStore strategy (FRM involved).
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final org.opendaylight.yangtools.yang.common.Uint32protected intprotected intprotected static final org.opendaylight.yangtools.yang.common.Uint16protected static final org.opendaylight.yangtools.yang.common.Uint16protected static final org.opendaylight.yangtools.yang.common.Uint16protected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>protected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>protected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>protected static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>protected intprotected intprotected static final org.opendaylight.yangtools.yang.common.Uint8
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal voidvoidclose()voidvoidfinal DropTestStatsgetStats()final voidonNotification(PacketReceived notification) protected voidprocessPacket(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> node, Match match, Instructions instructions) voidsetDataService(org.opendaylight.mdsal.binding.api.DataBroker dataService) voidsetNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService) voidstart()start listening on packetIn.
- 
Field Details- 
PRIORITYprotected static final org.opendaylight.yangtools.yang.common.Uint16 PRIORITY
- 
BUFFER_IDprotected static final org.opendaylight.yangtools.yang.common.Uint32 BUFFER_ID
- 
HARD_TIMEOUTprotected static final org.opendaylight.yangtools.yang.common.Uint16 HARD_TIMEOUT
- 
IDLE_TIMEOUTprotected static final org.opendaylight.yangtools.yang.common.Uint16 IDLE_TIMEOUT
- 
TABLE_IDprotected static final org.opendaylight.yangtools.yang.common.Uint8 TABLE_ID
- 
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
 
- 
- 
Constructor Details- 
DropTestCommiterpublic DropTestCommiter()
 
- 
- 
Method Details- 
startpublic void start()start listening on packetIn.
- 
setDataServicepublic void setDataService(org.opendaylight.mdsal.binding.api.DataBroker dataService) 
- 
processPacketprotected void processPacket(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> node, Match match, Instructions instructions) 
- 
closepublic void close()- Specified by:
- closein interface- AutoCloseable
 
- 
setNotificationServicepublic void setNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService) 
- 
getStats
- 
clearStatspublic final void clearStats()
- 
onNotification- Specified by:
- onNotificationin interface- org.opendaylight.mdsal.binding.api.NotificationService.Listener<PacketReceived>
 
- 
countFutureSuccesspublic void countFutureSuccess()
- 
countFutureErrorpublic void countFutureError()
 
-