X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=servicehandler%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Fservicehandler%2Fimpl%2FServicehandlerProvider.java;h=c30e7aba14dbbfd25578c976a52e37a75a49819e;hb=27070ce7114dcdb1da7203c54724fa3fe59e7cc3;hp=9580550a077cb9f572c33986380e3e966308434d;hpb=703ea2446974f96c2b57cd96c2d55edd4b3f99b2;p=transportpce.git diff --git a/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProvider.java b/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProvider.java index 9580550a0..c30e7aba1 100644 --- a/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProvider.java +++ b/servicehandler/src/main/java/org/opendaylight/transportpce/servicehandler/impl/ServicehandlerProvider.java @@ -13,7 +13,6 @@ import org.opendaylight.mdsal.binding.api.DataTreeChangeListener; import org.opendaylight.mdsal.binding.api.DataTreeIdentifier; import org.opendaylight.mdsal.binding.api.NotificationPublishService; import org.opendaylight.mdsal.binding.api.NotificationService; -import org.opendaylight.mdsal.binding.api.RpcProviderService; import org.opendaylight.mdsal.common.api.LogicalDatastoreType; import org.opendaylight.transportpce.servicehandler.service.ServiceDataStoreOperations; import org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.networkmodel.rev201116.TransportpceNetworkmodelListener; @@ -23,7 +22,6 @@ import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev230526.OrgOpen import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev230526.ServiceList; import org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev230526.service.list.Services; import org.opendaylight.yangtools.concepts.ListenerRegistration; -import org.opendaylight.yangtools.concepts.ObjectRegistration; import org.opendaylight.yangtools.yang.binding.InstanceIdentifier; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component; @@ -49,12 +47,10 @@ public class ServicehandlerProvider { private ListenerRegistration> serviceDataTreeChangeListenerRegistration; private ListenerRegistration rendererlistenerRegistration; private ListenerRegistration networkmodellistenerRegistration; - private ObjectRegistration rpcRegistration; private ServiceDataStoreOperations serviceDataStoreOperations; @Activate public ServicehandlerProvider(@Reference final DataBroker dataBroker, - @Reference RpcProviderService rpcProviderService, @Reference NotificationService notificationService, @Reference ServiceDataStoreOperations serviceDataStoreOperations, @Reference TransportpcePceListener pceListenerImpl, @@ -70,8 +66,6 @@ public class ServicehandlerProvider { networkmodellistenerRegistration = notificationService.registerNotificationListener(networkModelListenerImpl); serviceDataTreeChangeListenerRegistration = dataBroker.registerDataTreeChangeListener( DataTreeIdentifier.create(LogicalDatastoreType.OPERATIONAL, SERVICE), serviceListener); - rpcRegistration = rpcProviderService - .registerRpcImplementation(OrgOpenroadmServiceService.class, servicehandler); LOG.info("ServicehandlerProvider Session Initiated"); LOG.info("Transportpce controller started"); } @@ -86,6 +80,5 @@ public class ServicehandlerProvider { serviceDataTreeChangeListenerRegistration.close(); rendererlistenerRegistration.close(); networkmodellistenerRegistration.close(); - rpcRegistration.close(); } } \ No newline at end of file