comparison src/alice/datasegment/Command.java @ 190:a85ff8dc16c1 working

add Object data
author one
date Thu, 07 Mar 2013 21:27:00 +0900
parents 20616fe4d28a
children 60051454e443
comparison
equal deleted inserted replaced
189:d2f5c885a367 190:a85ff8dc16c1
14 public int index; 14 public int index;
15 public int seq; 15 public int seq;
16 public BlockingQueue<Command> replyQueue; 16 public BlockingQueue<Command> replyQueue;
17 public CodeSegment cs; 17 public CodeSegment cs;
18 public String reverseKey; 18 public String reverseKey;
19 public Object obj;
19 20
20 public Command(CommandType cmdType, Receiver receiver, String key, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) { 21 public Command(CommandType cmdType, Receiver receiver, String key, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) {
21 this.type = cmdType; 22 this.type = cmdType;
22 this.receiver = receiver; 23 this.receiver = receiver;
23 this.key = key; 24 this.key = key;
26 this.seq = seq; 27 this.seq = seq;
27 this.replyQueue = replyQueue; 28 this.replyQueue = replyQueue;
28 this.cs = cs; 29 this.cs = cs;
29 this.reverseKey = reverseKey; 30 this.reverseKey = reverseKey;
30 } 31 }
32 public Command(CommandType cmdType, Receiver receiver, String key, Object obj, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) {
33 this.type = cmdType;
34 this.receiver = receiver;
35 this.key = key;
36 this.obj = obj;
37 this.index = index;
38 this.seq = seq;
39 this.replyQueue = replyQueue;
40 this.cs = cs;
41 this.reverseKey = reverseKey;
42 }
43
44 public Command(CommandType cmdType, Receiver receiver, String key, Value val, Object obj, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) {
45 this.type = cmdType;
46 this.receiver = receiver;
47 this.key = key;
48 this.val = val;
49 this.index = index;
50 this.seq = seq;
51 this.replyQueue = replyQueue;
52 this.cs = cs;
53 this.reverseKey = reverseKey;
54 }
55
31 56
32 public String getCommandString() { 57 public String getCommandString() {
33 String csName = "null"; 58 String csName = "null";
34 if (cs != null) { 59 if (cs != null) {
35 csName = cs.toString(); 60 csName = cs.toString();