X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=blobdiff_plain;f=renderer%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Ftransportpce%2Frenderer%2FRendererProvider.java;h=69dad3864565ebef98c839252226ebacf4138ba0;hp=4729514532aa0e65c0b0f848ac741bb72c9ef32a;hb=0da8cea9fcd1c78753493ed6929f6e3241da06df;hpb=b5a312cc359527ae119076cadc5613ab85848ba4 diff --git a/renderer/src/main/java/org/opendaylight/transportpce/renderer/RendererProvider.java b/renderer/src/main/java/org/opendaylight/transportpce/renderer/RendererProvider.java index 472951453..69dad3864 100644 --- a/renderer/src/main/java/org/opendaylight/transportpce/renderer/RendererProvider.java +++ b/renderer/src/main/java/org/opendaylight/transportpce/renderer/RendererProvider.java @@ -7,15 +7,8 @@ */ package org.opendaylight.transportpce.renderer; -import java.util.HashSet; -import java.util.Set; - -import org.opendaylight.controller.md.sal.binding.api.DataBroker; -import org.opendaylight.controller.md.sal.binding.api.MountPointService; import org.opendaylight.controller.sal.binding.api.BindingAwareBroker.RpcRegistration; import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry; -import org.opendaylight.transportpce.common.device.DeviceTransactionManager; -import org.opendaylight.transportpce.common.mapping.PortMapping; import org.opendaylight.transportpce.renderer.provisiondevice.RendererServiceOperations; import org.opendaylight.transportpce.renderer.rpcs.DeviceRendererRPCImpl; import org.opendaylight.transportpce.renderer.rpcs.TransportPCEServicePathRPCImpl; @@ -27,30 +20,17 @@ import org.slf4j.LoggerFactory; public class RendererProvider { private static final Logger LOG = LoggerFactory.getLogger(RendererProvider.class); - private final DataBroker dataBroker; - private final MountPointService mountPointService; private final RpcProviderRegistry rpcProviderRegistry; - private final PortMapping portMapping; - private final DeviceTransactionManager deviceTransactionManager; private RpcRegistration deviceRendererRegistration; private DeviceRendererRPCImpl deviceRendererRPCImpl; private RpcRegistration tpceServiceRegistry; private RendererServiceOperations rendererServiceOperations; - private RendererNotificationsImpl rendererNotificationsImpl; - private final Set currentMountedDevice; public RendererProvider(RpcProviderRegistry rpcProviderRegistry, DeviceRendererRPCImpl deviceRendererRPCImpl, - RendererServiceOperations rendererServiceOperations,DataBroker dataBroker, - MountPointService mountPointService, PortMapping portMapping, - DeviceTransactionManager deviceTransactionManager) { + RendererServiceOperations rendererServiceOperations) { this.rpcProviderRegistry = rpcProviderRegistry; this.deviceRendererRPCImpl = deviceRendererRPCImpl; this.rendererServiceOperations = rendererServiceOperations; - this.dataBroker = dataBroker; - this.mountPointService = mountPointService; - this.currentMountedDevice = new HashSet<>(); - this.portMapping = portMapping; - this.deviceTransactionManager = deviceTransactionManager; } /** @@ -64,8 +44,6 @@ public class RendererProvider { .addRpcImplementation(RendererService.class, this.deviceRendererRPCImpl); this.tpceServiceRegistry = this.rpcProviderRegistry .addRpcImplementation(TransportpceServicepathService.class, transportPCEServicePathRPCImpl); - this.rendererNotificationsImpl = new RendererNotificationsImpl(this.dataBroker, this.mountPointService, - this.currentMountedDevice,this.portMapping,this.deviceTransactionManager); } /** @@ -79,10 +57,6 @@ public class RendererProvider { if (this.tpceServiceRegistry != null) { this.tpceServiceRegistry.close(); } - // Clean up the RendererNotificationsImpl - if (this.rendererNotificationsImpl != null) { - this.rendererNotificationsImpl.close(); - } } }