Class DropTestCommiter
java.lang.Object
org.opendaylight.openflowplugin.testcommon.DropTestCommiter
- All Implemented Interfaces:
AutoCloseable
,EventListener
,PacketProcessingListener
,org.opendaylight.yangtools.yang.binding.NotificationListener
Provides cbench responder behavior: upon packetIn arrival addFlow action is sent out to
device using dataStore strategy (FRM involved).
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final org.opendaylight.yangtools.yang.common.Uint32
protected int
protected int
protected static final org.opendaylight.yangtools.yang.common.Uint16
protected static final org.opendaylight.yangtools.yang.common.Uint16
protected static final org.opendaylight.yangtools.yang.common.Uint16
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 static final AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>
protected int
protected int
protected static final org.opendaylight.yangtools.yang.common.Uint8
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
void
close()
void
void
final DropTestStats
getStats()
final void
onPacketReceived
(PacketReceived notification) protected void
processPacket
(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> node, Match match, Instructions instructions) void
setDataService
(org.opendaylight.mdsal.binding.api.DataBroker dataService) void
setNotificationService
(org.opendaylight.mdsal.binding.api.NotificationService notificationService) void
start()
start listening on packetIn.
-
Field Details
-
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
-
-
Constructor Details
-
DropTestCommiter
public DropTestCommiter()
-
-
Method Details
-
start
public void start()start listening on packetIn. -
setDataService
public void setDataService(org.opendaylight.mdsal.binding.api.DataBroker dataService) -
processPacket
protected void processPacket(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> node, Match match, Instructions instructions) -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
setNotificationService
public void setNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService) -
getStats
-
clearStats
public final void clearStats() -
onPacketReceived
- Specified by:
onPacketReceived
in interfacePacketProcessingListener
-
countFutureSuccess
public void countFutureSuccess() -
countFutureError
public void countFutureError()
-