diff src/alice/datasegment/Command.java @ 13:30f97d776a3e

implements Alice daemon
author one
date Fri, 13 Jan 2012 19:04:59 +0900
parents 352eb19d837d
children e3f1b21718b0
line wrap: on
line diff
--- a/src/alice/datasegment/Command.java	Fri Jan 13 07:04:38 2012 +0900
+++ b/src/alice/datasegment/Command.java	Fri Jan 13 19:04:59 2012 +0900
@@ -1,25 +1,27 @@
 package alice.datasegment;
 
+import java.util.concurrent.BlockingQueue;
+
 import org.msgpack.type.Value;
 
 import alice.codesegment.CodeSegment;
 
 public class Command {
-	public CommandType cmdType;
+	public CommandType type;
 	public String argKey;
 	public Value val;
 	public int index;
 	public int seq;
-	public DataSegmentManager manager;
+	public BlockingQueue<Command> replyQueue;
 	public CodeSegment cs;
 	
-	public Command(CommandType cmdType, String argKey, Value val, int index, int seq, DataSegmentManager manager, CodeSegment cs) {
-		this.cmdType = cmdType;
+	public Command(CommandType cmdType, String argKey, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs) {
+		this.type = cmdType;
 		this.argKey = argKey;
 		this.val = val;
 		this.index = index;
 		this.seq = seq;
-		this.manager = manager;
+		this.replyQueue = replyQueue;
 		this.cs = cs;
 	}