Class DropTestCommiter
- java.lang.Object
-
- org.opendaylight.openflowplugin.testcommon.DropTestCommiter
-
- All Implemented Interfaces:
AutoCloseable
,EventListener
,PacketProcessingListener
,org.opendaylight.yangtools.yang.binding.NotificationListener
public class DropTestCommiter extends Object
Provides cbench responder behavior: upon packetIn arrival addFlow action is sent out to device using dataStore strategy (FRM involved).
-
-
Field Summary
Fields Modifier and Type Field Description protected static Long
BUFFER_ID
protected int
ftrFailed
protected int
ftrSuccess
protected static Integer
HARD_TIMEOUT
protected static Integer
IDLE_TIMEOUT
protected static Integer
PRIORITY
protected static AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>
RPC_FUTURE_FAIL_UPDATER
protected static AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>
RPC_FUTURE_SUCCESS_UPDATER
protected static AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>
RUNABLES_EXECUTED
protected static AtomicIntegerFieldUpdater<org.opendaylight.openflowplugin.testcommon.AbstractDropTest>
RUNABLES_REJECTED
protected int
runablesExecuted
protected int
runablesRejected
protected static short
TABLE_ID
-
Constructor Summary
Constructors Constructor Description DropTestCommiter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearStats()
void
close()
void
countFutureError()
void
countFutureSuccess()
DropTestStats
getStats()
void
onPacketReceived(PacketReceived notification)
Delivery of incoming packet wrapped in openflow structure.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)
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 Detail
-
PRIORITY
protected static final Integer PRIORITY
-
BUFFER_ID
protected static final Long BUFFER_ID
-
HARD_TIMEOUT
protected static final Integer HARD_TIMEOUT
-
IDLE_TIMEOUT
protected static final Integer IDLE_TIMEOUT
-
TABLE_ID
protected static final short TABLE_ID
- See Also:
- Constant Field Values
-
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
-
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<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.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
public final DropTestStats getStats()
-
clearStats
public final void clearStats()
-
onPacketReceived
public final void onPacketReceived(PacketReceived notification)
Description copied from interface:PacketProcessingListener
Delivery of incoming packet wrapped in openflow structure.- Specified by:
onPacketReceived
in interfacePacketProcessingListener
-
countFutureSuccess
public void countFutureSuccess()
-
countFutureError
public void countFutureError()
-
-