Class OpenflowpluginMeterTestServiceProvider
java.lang.Object
org.opendaylight.openflowplugin.test.OpenflowpluginMeterTestServiceProvider
- All Implemented Interfaces:
AutoCloseable,SalMeterService,org.opendaylight.yangtools.yang.binding.RpcService
public class OpenflowpluginMeterTestServiceProvider
extends Object
implements AutoCloseable, SalMeterService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddMeterOutput>>addMeter(AddMeterInput input) Invokeadd-meterRPC.voidclose()org.opendaylight.mdsal.binding.api.DataBrokerGets the data service.org.opendaylight.yangtools.concepts.ObjectRegistration<SalMeterService>Gets the meter registration.org.opendaylight.mdsal.binding.api.NotificationPublishServiceGets the notification service.org.opendaylight.yangtools.concepts.ObjectRegistration<OpenflowpluginMeterTestServiceProvider>register(org.opendaylight.mdsal.binding.api.RpcProviderService rpcRegistry) com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveMeterOutput>>removeMeter(RemoveMeterInput input) Invokeremove-meterRPC.voidsetDataService(org.opendaylight.mdsal.binding.api.DataBroker dataService) Sets thedataService.voidsetMeterRegistration(org.opendaylight.yangtools.concepts.ObjectRegistration<SalMeterService> meterRegistration) Sets themeterRegistration.voidsetNotificationService(org.opendaylight.mdsal.binding.api.NotificationPublishService notificationService) Sets thenotificationService.voidstart()com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateMeterOutput>>updateMeter(UpdateMeterInput input) Invokeupdate-meterRPC.
-
Constructor Details
-
OpenflowpluginMeterTestServiceProvider
public OpenflowpluginMeterTestServiceProvider()
-
-
Method Details
-
getDataService
public org.opendaylight.mdsal.binding.api.DataBroker getDataService()Gets the data service.- Returns:
dataService
-
setDataService
public void setDataService(org.opendaylight.mdsal.binding.api.DataBroker dataService) Sets thedataService. -
getMeterRegistration
public org.opendaylight.yangtools.concepts.ObjectRegistration<SalMeterService> getMeterRegistration()Gets the meter registration.- Returns:
meterRegistration
-
setMeterRegistration
public void setMeterRegistration(org.opendaylight.yangtools.concepts.ObjectRegistration<SalMeterService> meterRegistration) Sets themeterRegistration. -
getNotificationService
public org.opendaylight.mdsal.binding.api.NotificationPublishService getNotificationService()Gets the notification service.- Returns:
notificationService
-
setNotificationService
public void setNotificationService(org.opendaylight.mdsal.binding.api.NotificationPublishService notificationService) Sets thenotificationService. -
start
public void start() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
addMeter
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<AddMeterOutput>> addMeter(AddMeterInput input) Description copied from interface:SalMeterServiceInvokeadd-meterRPC.Adding meter to openflow device.- Specified by:
addMeterin interfaceSalMeterService- Parameters:
input- ofadd-meter- Returns:
- output of
add-meter
-
removeMeter
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<RemoveMeterOutput>> removeMeter(RemoveMeterInput input) Description copied from interface:SalMeterServiceInvokeremove-meterRPC.Removing metere from openflow device.- Specified by:
removeMeterin interfaceSalMeterService- Parameters:
input- ofremove-meter- Returns:
- output of
remove-meter
-
updateMeter
public com.google.common.util.concurrent.ListenableFuture<org.opendaylight.yangtools.yang.common.RpcResult<UpdateMeterOutput>> updateMeter(UpdateMeterInput input) Description copied from interface:SalMeterServiceInvokeupdate-meterRPC.Updating meter on openflow device.- Specified by:
updateMeterin interfaceSalMeterService- Parameters:
input- ofupdate-meter- Returns:
- output of
update-meter
-
register
public org.opendaylight.yangtools.concepts.ObjectRegistration<OpenflowpluginMeterTestServiceProvider> register(org.opendaylight.mdsal.binding.api.RpcProviderService rpcRegistry)
-