MRI version bumpup for Aluminium
[netvirt.git] / elanmanager / impl / src / main / java / org / opendaylight / netvirt / elan / l2gw / utils / ElanRefUtil.java
1 /*
2  * Copyright (c) 2019 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.netvirt.elan.l2gw.utils;
9
10 import javax.inject.Inject;
11 import javax.inject.Singleton;
12 import org.opendaylight.infrautils.jobcoordinator.JobCoordinator;
13 import org.opendaylight.mdsal.binding.api.DataBroker;
14 import org.opendaylight.netvirt.elan.cache.ConfigMcastCache;
15 import org.opendaylight.netvirt.elan.cache.ElanInstanceCache;
16 import org.opendaylight.netvirt.elan.cache.ElanInstanceDpnsCache;
17 import org.opendaylight.netvirt.elan.cache.ElanInterfaceCache;
18 import org.opendaylight.netvirt.elan.utils.ElanClusterUtils;
19 import org.opendaylight.netvirt.elan.utils.Scheduler;
20
21 @Singleton
22 public class ElanRefUtil {
23
24     private final DataBroker dataBroker;
25     private final ElanClusterUtils elanClusterUtils;
26     private final Scheduler scheduler;
27     private final JobCoordinator jobCoordinator;
28     private final ElanInstanceCache elanInstanceCache;
29     private final ElanInstanceDpnsCache elanInstanceDpnsCache;
30     private final ElanInterfaceCache elanInterfaceCache;
31     private final ConfigMcastCache configMcastCache;
32
33     @Inject
34     public ElanRefUtil(DataBroker dataBroker,
35                        ElanClusterUtils elanClusterUtils,
36                        ElanInstanceCache elanInstanceCache,
37                        ElanInstanceDpnsCache elanInstanceDpnsCache,
38                        ElanInterfaceCache elanInterfaceCache,
39                        ConfigMcastCache configMcastCache,
40                        JobCoordinator jobCoordinator,
41                        Scheduler scheduler) {
42         this.dataBroker = dataBroker;
43         this.elanClusterUtils = elanClusterUtils;
44         this.elanInstanceCache = elanInstanceCache;
45         this.elanInstanceDpnsCache = elanInstanceDpnsCache;
46         this.elanInterfaceCache = elanInterfaceCache;
47         this.configMcastCache = configMcastCache;
48         this.jobCoordinator = jobCoordinator;
49         this.scheduler = scheduler;
50     }
51
52     public DataBroker getDataBroker() {
53         return dataBroker;
54     }
55
56     public ElanClusterUtils getElanClusterUtils() {
57         return elanClusterUtils;
58     }
59
60     public ElanInstanceCache getElanInstanceCache() {
61         return elanInstanceCache;
62     }
63
64     public ElanInstanceDpnsCache getElanInstanceDpnsCache() {
65         return elanInstanceDpnsCache;
66     }
67
68     public ElanInterfaceCache getElanInterfaceCache() {
69         return elanInterfaceCache;
70     }
71
72     public JobCoordinator getJobCoordinator() {
73         return jobCoordinator;
74     }
75
76     public Scheduler getScheduler() {
77         return scheduler;
78     }
79
80     public ConfigMcastCache getConfigMcastCache() {
81         return configMcastCache;
82     }
83 }