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.groupbasedpolicy.renderer.iovisor.endpoint.EndpointManager;
13 import org.slf4j.Logger;
14 import org.slf4j.LoggerFactory;
17 * Renderer that converts GBP services to IOVisor Agents
19 public class IovisorRenderer implements AutoCloseable {
21 private static final Logger LOG = LoggerFactory.getLogger(IovisorRenderer.class);
23 private EndpointManager endPointManager;
25 public IovisorRenderer(final DataBroker dataBroker) {
26 LOG.info("IOVisor Renderer has Started");
27 this.endPointManager = new EndpointManager(dataBroker);
31 public void close() throws Exception {
32 if (endPointManager != null) {
33 endPointManager.close();