diff src/alice/datasegment/LocalDataSegmentManager.java @ 56:17f88fd202ae

refactor data segment
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Wed, 08 Feb 2012 14:31:16 +0900
parents f9334781344a
children 7fa9ddb31f64
line wrap: on
line diff
--- a/src/alice/datasegment/LocalDataSegmentManager.java	Tue Feb 07 19:34:50 2012 +0900
+++ b/src/alice/datasegment/LocalDataSegmentManager.java	Wed Feb 08 14:31:16 2012 +0900
@@ -1,14 +1,16 @@
 package alice.datasegment;
 
+import java.util.concurrent.ConcurrentHashMap;
+
 import org.apache.log4j.Logger;
 import org.msgpack.type.Value;
 
 import alice.codesegment.CodeSegment;
-import alice.datasegment.CommandType;
 
 public class LocalDataSegmentManager extends DataSegmentManager {
 	
-	public String reverseKey = "local";
+	private String reverseKey = "local";
+	private ConcurrentHashMap<String, DataSegmentKey> dataSegments = new ConcurrentHashMap<String, DataSegmentKey>();
 	
 	private Logger logger = Logger.getLogger("local");