2 * Copyright (c) 2015 Cisco Systems. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.groupbasedpolicy.renderer.iovisor;
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.controller.sal.binding.api.RpcProviderRegistry;
13 import org.opendaylight.groupbasedpolicy.renderer.iovisor.endpoint.EndpointManager;
14 import org.slf4j.Logger;
15 import org.slf4j.LoggerFactory;
18 * Renderer that converts GBP services to IOVisor Agents
20 public class IovisorRenderer implements AutoCloseable {
22 private static final Logger LOG = LoggerFactory.getLogger(IovisorRenderer.class);
24 private EndpointManager endPointManager;
26 public IovisorRenderer(DataBroker dataBroker, RpcProviderRegistry rpcProviderRegistry) {
27 LOG.info("IOVisor Renderer has Started");
28 this.endPointManager = new EndpointManager(dataBroker, rpcProviderRegistry);
32 public void close() throws Exception {
33 if (endPointManager != null) {
34 endPointManager.close();