OPNFLWPLUG-1087: ODL controller to provide view of openflow node reconciliation status
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / services / cache / FlowGroupCacheManagerImpl.java
1 /*
2  * Copyright (c) 2018 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.openflowplugin.impl.services.cache;
9
10 import java.util.Map;
11 import java.util.concurrent.ConcurrentHashMap;
12 import javax.inject.Singleton;
13 import org.apache.aries.blueprint.annotation.service.Service;
14 import org.opendaylight.openflowplugin.api.openflow.FlowGroupCacheManager;
15 import org.opendaylight.openflowplugin.api.openflow.ReconciliationState;
16
17 @Singleton
18 @Service(classes = FlowGroupCacheManager.class)
19 public class FlowGroupCacheManagerImpl implements FlowGroupCacheManager {
20
21     private Map<String, ReconciliationState> reconciliationStates = new ConcurrentHashMap<>();
22
23     @Override
24     public Map<String, ReconciliationState> getReconciliationStates() {
25         return reconciliationStates;
26     }
27 }