package cn.amq.traffic;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang.StringUtils;
/**
 * »º´æ¼à¿ØÒÆÎ»×´Ì¬ÖÁÇ°¶Ë
 * @author Lenovo
 *
 */
public class CacheMonitorMovedDataService {

	Object mutex = new Object();
	
	private Map<String,String> cacheMonitorMovedDataMap = new HashMap<String,String>();

	public Map<String,String> getCacheMonitorMovedDataMap() {
		synchronized (mutex) {
			Map<String,String> tempMap = new HashMap<String,String>();
			tempMap = cacheMonitorMovedDataMap;
			return tempMap;
		}
	}

	public void setCacheMonitorMovedDataMap(String key,String value) {
		synchronized (mutex) {
			if (StringUtils.isNotEmpty(key) && cacheMonitorMovedDataMap!=null) {
				cacheMonitorMovedDataMap.put(key,value);
			}
		}
	}
}
