Class DropTestCommiterImpl
java.lang.Object
org.opendaylight.openflowplugin.testcommon.DropTestCommiterImpl
- All Implemented Interfaces:
- AutoCloseable,- org.opendaylight.mdsal.binding.api.NotificationService.Listener<PacketReceived>,- DropTest,- DropTestCommiter
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 SummaryConstructorsConstructorDescriptionDropTestCommiterImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationService notificationService) 
- 
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) booleanstart()Start listening on packetIn.booleanstop()Stop listening on packetIn.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opendaylight.openflowplugin.testcommon.DropTestclearStats, getStats
- 
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- 
DropTestCommiterImpl@Inject public DropTestCommiterImpl(org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.mdsal.binding.api.NotificationService notificationService) 
 
- 
- 
Method Details- 
close@PreDestroy public void close()- Specified by:
- closein interface- AutoCloseable
 
- 
startpublic boolean start()Start listening on packetIn.
- 
stoppublic boolean stop()Stop listening on packetIn.
- 
processPacketprotected void processPacket(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> node, Match match, Instructions instructions) 
- 
getStats
- 
clearStatspublic final void clearStats()- Specified by:
- clearStatsin interface- DropTest
 
- 
onNotification- Specified by:
- onNotificationin interface- org.opendaylight.mdsal.binding.api.NotificationService.Listener<PacketReceived>
 
- 
countFutureSuccesspublic void countFutureSuccess()
- 
countFutureErrorpublic void countFutureError()
 
-