Merge "Fixed netconf monitoring."
[controller.git] / opendaylight / md-sal / statistics-manager / src / main / java / org / opendaylight / controller / md / statistics / manager / MultipartMessageManager.java
1 /*
2  * Copyright IBM Corporation, 2013.  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.controller.md.statistics.manager;
9
10 import java.util.Map;
11 import java.util.concurrent.ConcurrentHashMap;
12
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev131103.TransactionId;
14
15 /**
16  * Main responsibility of the class is to manage multipart response 
17  * for multipart request. It also handles the flow aggregate request
18  * and response mapping. 
19  * @author avishnoi@in.ibm.com
20  *
21  */
22 public class MultipartMessageManager {
23
24     private static Map<TransactionId,Short> txIdTotableIdMap = new ConcurrentHashMap<TransactionId,Short>();
25     
26     public MultipartMessageManager(){}
27     
28     public Short getTableIdForTxId(TransactionId id){
29         
30         return txIdTotableIdMap.get(id);
31         
32     }
33     
34     public void setTxIdAndTableIdMapEntry(TransactionId id,Short tableId){
35         txIdTotableIdMap.put(id, tableId);
36     }
37 }