Initial checkin for ITM module
[vpnservice.git] / itm / itm-impl / src / main / java / org / opendaylight / vpnservice / itm / impl / ITMManager.java
1 /*
2  * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. 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 package org.opendaylight.vpnservice.itm.impl;
9
10 import java.math.BigInteger;
11 import java.net.InetAddress;
12 import java.util.ArrayList;
13 import java.util.Arrays;
14 import java.util.List;
15 import java.util.concurrent.Future;
16
17 import org.apache.commons.net.util.SubnetUtils;
18 import org.opendaylight.controller.md.sal.binding.api.DataBroker;
19 import org.opendaylight.controller.md.sal.binding.api.NotificationPublishService;
20 import org.opendaylight.controller.md.sal.binding.api.NotificationService;
21
22 import org.opendaylight.vpnservice.itm.globals.ITMConstants;
23
24 import org.slf4j.Logger;
25 import org.slf4j.LoggerFactory;
26
27
28 import org.opendaylight.vpnservice.mdsalutil.interfaces.IMdsalApiManager;
29
30
31 public class ITMManager implements AutoCloseable {
32     private static final Logger LOG = LoggerFactory.getLogger(ITMManager.class);
33
34     private final DataBroker broker;
35     private IMdsalApiManager mdsalManager;
36     private NotificationPublishService notificationPublishService;
37
38     @Override
39     public void close() throws Exception {
40         LOG.info("ITMManager Closed");
41     }
42
43     public ITMManager(final DataBroker db) {
44         broker = db;
45     }
46
47     public void setMdsalManager(IMdsalApiManager mdsalManager) {
48         this.mdsalManager = mdsalManager;
49     }
50
51     public void setNotificationPublishService(NotificationPublishService notificationPublishService) {
52         this.notificationPublishService = notificationPublishService;
53     }
54
55 }