Class DropTestDsProvider
- java.lang.Object
-
- org.opendaylight.openflowplugin.testcommon.DropTestDsProvider
-
- All Implemented Interfaces:
AutoCloseable
public class DropTestDsProvider extends Object implements AutoCloseable
Provides activation and deactivation of drop responder service - responds on packetIn.
-
-
Constructor Summary
Constructors Constructor Description DropTestDsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearStats()Reset message counts.voidclose()DropTestStatsgetStats()Returns the message counts.booleanisActive()Returns the active state.voidsetDataService(org.opendaylight.mdsal.binding.api.DataBroker dataService)voidsetNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService)voidstart()Activates the drop responder.
-
-
-
Method Detail
-
getStats
public DropTestStats getStats()
Returns the message counts.
-
clearStats
public void clearStats()
Reset message counts.
-
setDataService
public void setDataService(org.opendaylight.mdsal.binding.api.DataBroker dataService)
-
setNotificationService
public void setNotificationService(org.opendaylight.mdsal.binding.api.NotificationService notificationService)
-
start
public void start()
Activates the drop responder.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
isActive
public boolean isActive()
Returns the active state.
-
-