Imported vpnservice as a subtree
[netvirt.git] / vpnservice / fcapsapplication / fcapsapplication-jmxapi / src / main / java / org / opendaylight / vpnservice / fcapsappjmx / PacketInCounter.java
1 /*
2  * Copyright (c) 2016 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.fcapsappjmx;
9
10 import java.util.HashMap;
11 import java.util.Map;
12
13 public class PacketInCounter implements PacketInCounterMBean {
14     private static Map<String,String> counterCache = new HashMap<String,String>();
15
16     @Override
17     public void updateCounter(Map<String, String> map) {
18         counterCache = map;
19     }
20
21     @Override
22     public Map<String, String> retrieveCounterMap() {
23         return counterCache;
24     }
25 }