Class OpenflowpluginTestServiceProvider
- java.lang.Object
 - 
- org.opendaylight.openflowplugin.test.OpenflowpluginTestServiceProvider
 
 
- 
- All Implemented Interfaces:
 AutoCloseable,SalFlowService,org.opendaylight.yangtools.yang.binding.RpcService
public class OpenflowpluginTestServiceProvider extends Object implements AutoCloseable, SalFlowService
 
- 
- 
Constructor Summary
Constructors Constructor Description OpenflowpluginTestServiceProvider(org.opendaylight.mdsal.binding.api.DataBroker dataService, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationProviderService) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddFlowOutput>>addFlow(AddFlowInput input)Adding flow to openflow device.voidclose()org.opendaylight.mdsal.binding.api.DataBrokergetDataService()Get data service.org.opendaylight.yangtools.concepts.ObjectRegistration<SalFlowService>getFlowRegistration()Get flow registration.org.opendaylight.mdsal.binding.api.NotificationPublishServicegetNotificationService()Get notification service.org.opendaylight.yangtools.concepts.ObjectRegistration<OpenflowpluginTestServiceProvider>register(org.opendaylight.mdsal.binding.api.RpcProviderService rpcRegistry)com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowOutput>>removeFlow(RemoveFlowInput input)Removing flow from openflow device.voidsetFlowRegistration(org.opendaylight.yangtools.concepts.ObjectRegistration<SalFlowService> flowRegistration)SetflowRegistration.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowOutput>>updateFlow(UpdateFlowInput input)Updating flow on openflow device. 
 - 
 
- 
- 
Method Detail
- 
getDataService
public org.opendaylight.mdsal.binding.api.DataBroker getDataService()
Get data service.- Returns:
 dataService
 
- 
getFlowRegistration
public org.opendaylight.yangtools.concepts.ObjectRegistration<SalFlowService> getFlowRegistration()
Get flow registration.- Returns:
 flowRegistration
 
- 
setFlowRegistration
public void setFlowRegistration(org.opendaylight.yangtools.concepts.ObjectRegistration<SalFlowService> flowRegistration)
SetflowRegistration. 
- 
getNotificationService
public org.opendaylight.mdsal.binding.api.NotificationPublishService getNotificationService()
Get notification service.- Returns:
 notificationProviderService
 
- 
close
public void close()
- Specified by:
 closein interfaceAutoCloseable
 
- 
addFlow
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddFlowOutput>> addFlow(AddFlowInput input)
Description copied from interface:SalFlowServiceAdding flow to openflow device.- Specified by:
 addFlowin interfaceSalFlowService
 
- 
removeFlow
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowOutput>> removeFlow(RemoveFlowInput input)
Description copied from interface:SalFlowServiceRemoving flow from openflow device.- Specified by:
 removeFlowin interfaceSalFlowService
 
- 
updateFlow
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowOutput>> updateFlow(UpdateFlowInput input)
Description copied from interface:SalFlowServiceUpdating flow on openflow device.- Specified by:
 updateFlowin interfaceSalFlowService
 
- 
register
public org.opendaylight.yangtools.concepts.ObjectRegistration<OpenflowpluginTestServiceProvider> register(org.opendaylight.mdsal.binding.api.RpcProviderService rpcRegistry)
 
 - 
 
 -