Mercurial > hg > Members > tatsuki > Alice
annotate src/alice/datasegment/Command.java @ 39:3155337e754e
add logger
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 27 Jan 2012 16:57:26 +0900 |
parents | 20c67f673224 |
children | 20616fe4d28a |
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; |
7 | 19 |
33
20c67f673224
change name of DataSegmentReceiver
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
20 public Command(CommandType cmdType, Receiver receiver, String key, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) { |
13 | 21 this.type = cmdType; |
18
72dd27d952b0
change InputDataSegment API
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
16
diff
changeset
|
22 this.receiver = receiver; |
16 | 23 this.key = key; |
3 | 24 this.val = val; |
25 this.index = index; | |
26 this.seq = seq; | |
13 | 27 this.replyQueue = replyQueue; |
7 | 28 this.cs = cs; |
28
98ab26e09a98
Configuration Manager work and implements reverseKey
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
18
diff
changeset
|
29 this.reverseKey = reverseKey; |
3 | 30 } |
31 | |
39 | 32 public String getCommandString() { |
33 String csName = "null"; | |
34 if (cs != null) { | |
35 csName = cs.toString(); | |
36 } | |
37 return this.type + " \"" + key + "\" " + val + " index=" + index + " cs=" + csName; | |
38 } | |
39 | |
3 | 40 } |