2 * Copyright IBM Corporation, 2013. All rights reserved.
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
8 package org.opendaylight.controller.md.statistics.manager;
11 import java.util.concurrent.ConcurrentHashMap;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.transaction.rev131103.TransactionId;
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
22 public class MultipartMessageManager {
24 private static Map<TransactionId,Short> txIdTotableIdMap = new ConcurrentHashMap<TransactionId,Short>();
26 public MultipartMessageManager(){}
28 public Short getTableIdForTxId(TransactionId id){
30 return txIdTotableIdMap.get(id);
34 public void setTxIdAndTableIdMapEntry(TransactionId id,Short tableId){
35 txIdTotableIdMap.put(id, tableId);