Mercurial > hg > Members > tatsuki > Alice
annotate 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 |
rev | line source |
---|---|
3 | 1 package alice.datasegment; |
2 | |
13 | 3 import java.util.concurrent.BlockingQueue; |
4 | |
3 | 5 import org.msgpack.type.Value; |
6 | |
7 | 7 import alice.codesegment.CodeSegment; |
8 | |
3 | 9 public class Command { |
13 | 10 public CommandType type; |
14
e3f1b21718b0
implements RemoteDataSegment
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
11 public String key; |
33
20c67f673224
change name of DataSegmentReceiver
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
12 public Receiver receiver; |
3 | 13 public Value val; |
14 public int index; | |
15 public int seq; | |
13 | 16 public BlockingQueue<Command> replyQueue; |
7 | 17 public CodeSegment cs; |
28
98ab26e09a98
Configuration Manager work and implements reverseKey
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
18
diff
changeset
|
18 public String reverseKey; |
190 | 19 public Object obj; |
7 | 20 |
33
20c67f673224
change name of DataSegmentReceiver
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
21 public Command(CommandType cmdType, Receiver receiver, String key, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) { |
13 | 22 this.type = cmdType; |
18
72dd27d952b0
change InputDataSegment API
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
16
diff
changeset
|
23 this.receiver = receiver; |
16 | 24 this.key = key; |
3 | 25 this.val = val; |
26 this.index = index; | |
27 this.seq = seq; | |
13 | 28 this.replyQueue = replyQueue; |
7 | 29 this.cs = cs; |
28
98ab26e09a98
Configuration Manager work and implements reverseKey
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
18
diff
changeset
|
30 this.reverseKey = reverseKey; |
3 | 31 } |
190 | 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 | |
3 | 56 |
39 | 57 public String getCommandString() { |
58 String csName = "null"; | |
59 if (cs != null) { | |
60 csName = cs.toString(); | |
61 } | |
40 | 62 return this.type + "\t" + key + "\t" + val + "\tindex=" + index + "\tcs=" + csName; |
39 | 63 } |
64 | |
3 | 65 } |