b19dafab9d3332d8a8fc7cc338de04baffbfee43
[groupbasedpolicy.git] / renderers / ofoverlay / src / main / java / org / opendaylight / controller / config / yang / config / ofoverlay_provider / impl / OFOverlayProviderInstance.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.controller.config.yang.config.ofoverlay_provider.impl;
10
11 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
12 import org.opendaylight.controller.md.sal.binding.api.NotificationService;
13 import org.opendaylight.groupbasedpolicy.api.EpRendererAugmentationRegistry;
14 import org.opendaylight.groupbasedpolicy.api.PolicyValidatorRegistry;
15 import org.opendaylight.groupbasedpolicy.api.StatisticsManager;
16 import org.opendaylight.groupbasedpolicy.renderer.ofoverlay.OFOverlayRenderer;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.service.rev130819.SalFlowService;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
19
20 public class OFOverlayProviderInstance implements AutoCloseable {
21
22
23     public OFOverlayRenderer renderer;
24
25     public OFOverlayProviderInstance(DataBroker dataBroker,
26             PacketProcessingService packetProcessingService,
27             SalFlowService flowService,
28             NotificationService notificationService,
29             EpRendererAugmentationRegistry epRendererAugmentationRegistry,
30             PolicyValidatorRegistry policyValidatorRegistry,
31             StatisticsManager statisticsManager,
32             short tableOffset
33             ) {
34         renderer = new OFOverlayRenderer(dataBroker,
35                 packetProcessingService,
36                 flowService,
37                 notificationService,
38                 epRendererAugmentationRegistry,
39                 policyValidatorRegistry,
40                 statisticsManager,
41                 tableOffset);
42     }
43
44     @Override
45     public void close() throws Exception {
46         renderer.close();
47     }
48
49 }