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
ConstructorDescriptionOpenflowpluginTestServiceProvider
(org.opendaylight.mdsal.binding.api.DataBroker dataService, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationProviderService) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddFlowOutput>>
addFlow
(AddFlowInput input) Invokeadd-flow
RPC.void
close()
org.opendaylight.mdsal.binding.api.DataBroker
Get data service.org.opendaylight.yangtools.concepts.ObjectRegistration<SalFlowService>
Get flow registration.org.opendaylight.mdsal.binding.api.NotificationPublishService
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) Invokeremove-flow
RPC.void
setFlowRegistration
(org.opendaylight.yangtools.concepts.ObjectRegistration<SalFlowService> flowRegistration) SetflowRegistration
.com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowOutput>>
updateFlow
(UpdateFlowInput input) Invokeupdate-flow
RPC.
-
Constructor Details
-
OpenflowpluginTestServiceProvider
public OpenflowpluginTestServiceProvider(org.opendaylight.mdsal.binding.api.DataBroker dataService, org.opendaylight.mdsal.binding.api.NotificationPublishService notificationProviderService)
-
-
Method Details
-
getDataService
public org.opendaylight.mdsal.binding.api.DataBroker getDataService()Get data service.- Returns:
dataService
-
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:
close
in interfaceAutoCloseable
-
addFlow
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddFlowOutput>> addFlow(AddFlowInput input) Description copied from interface:SalFlowService
Invokeadd-flow
RPC.Adding flow to openflow device.
- Specified by:
addFlow
in interfaceSalFlowService
- Parameters:
input
- ofadd-flow
- Returns:
- output of
add-flow
-
removeFlow
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveFlowOutput>> removeFlow(RemoveFlowInput input) Description copied from interface:SalFlowService
Invokeremove-flow
RPC.Removing flow from openflow device.
- Specified by:
removeFlow
in interfaceSalFlowService
- Parameters:
input
- ofremove-flow
- Returns:
- output of
remove-flow
-
updateFlow
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateFlowOutput>> updateFlow(UpdateFlowInput input) Description copied from interface:SalFlowService
Invokeupdate-flow
RPC.Updating flow on openflow device.
- Specified by:
updateFlow
in interfaceSalFlowService
- Parameters:
input
- ofupdate-flow
- Returns:
- output of
update-flow
-
register
public org.opendaylight.yangtools.concepts.ObjectRegistration<OpenflowpluginTestServiceProvider> register(org.opendaylight.mdsal.binding.api.RpcProviderService rpcRegistry)
-