Mercurial > hg > Members > tatsuki > Alice
annotate src/alice/datasegment/Command.java @ 198:f151dea22b2c working
add flip api
author | sugi |
---|---|
date | Tue, 19 Mar 2013 01:25:09 +0900 |
parents | b4ca7f75e6b2 |
children | 7f47231ef509 |
rev | line source |
---|---|
3 | 1 package alice.datasegment; |
2 | |
13 | 3 import java.util.concurrent.BlockingQueue; |
3 | 4 import org.msgpack.type.Value; |
5 | |
7 | 6 import alice.codesegment.CodeSegment; |
7 | |
3 | 8 public class Command { |
13 | 9 public CommandType type; |
14
e3f1b21718b0
implements RemoteDataSegment
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
13
diff
changeset
|
10 public String key; |
33
20c67f673224
change name of DataSegmentReceiver
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
11 public Receiver receiver; |
3 | 12 public Value val; |
13 public int index; | |
14 public int seq; | |
13 | 15 public BlockingQueue<Command> replyQueue; |
7 | 16 public CodeSegment cs; |
28
98ab26e09a98
Configuration Manager work and implements reverseKey
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
18
diff
changeset
|
17 public String reverseKey; |
190 | 18 public Object obj; |
195 | 19 public DataSegmentValue dsv; |
20 | |
21 public Command(CommandType cmdType, int seq, DataSegmentValue dsv){ | |
198 | 22 this.type=cmdType; |
23 this.seq=seq; | |
24 this.dsv=dsv; | |
195 | 25 } |
7 | 26 |
33
20c67f673224
change name of DataSegmentReceiver
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
28
diff
changeset
|
27 public Command(CommandType cmdType, Receiver receiver, String key, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) { |
13 | 28 this.type = cmdType; |
18
72dd27d952b0
change InputDataSegment API
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
16
diff
changeset
|
29 this.receiver = receiver; |
16 | 30 this.key = key; |
3 | 31 this.val = val; |
32 this.index = index; | |
33 this.seq = seq; | |
13 | 34 this.replyQueue = replyQueue; |
7 | 35 this.cs = cs; |
28
98ab26e09a98
Configuration Manager work and implements reverseKey
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
18
diff
changeset
|
36 this.reverseKey = reverseKey; |
3 | 37 } |
190 | 38 public Command(CommandType cmdType, Receiver receiver, String key, Object obj, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) { |
39 this.type = cmdType; | |
40 this.receiver = receiver; | |
41 this.key = key; | |
42 this.obj = obj; | |
43 this.index = index; | |
44 this.seq = seq; | |
45 this.replyQueue = replyQueue; | |
46 this.cs = cs; | |
47 this.reverseKey = reverseKey; | |
48 } | |
49 | |
50 public Command(CommandType cmdType, Receiver receiver, String key, Value val, Object obj, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) { | |
51 this.type = cmdType; | |
52 this.receiver = receiver; | |
53 this.key = key; | |
54 this.val = val; | |
191 | 55 this.obj = obj; |
190 | 56 this.index = index; |
57 this.seq = seq; | |
58 this.replyQueue = replyQueue; | |
59 this.cs = cs; | |
60 this.reverseKey = reverseKey; | |
61 } | |
62 | |
3 | 63 |
198 | 64 |
65 | |
39 | 66 public String getCommandString() { |
67 String csName = "null"; | |
68 if (cs != null) { | |
69 csName = cs.toString(); | |
70 } | |
40 | 71 return this.type + "\t" + key + "\t" + val + "\tindex=" + index + "\tcs=" + csName; |
39 | 72 } |
73 | |
3 | 74 } |