comparison 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
comparison
equal deleted inserted replaced
197:2b28d3c16a58 198:f151dea22b2c
1 package alice.datasegment; 1 package alice.datasegment;
2 2
3 import java.util.concurrent.BlockingQueue; 3 import java.util.concurrent.BlockingQueue;
4
5 import org.msgpack.type.Value; 4 import org.msgpack.type.Value;
6 5
7 import alice.codesegment.CodeSegment; 6 import alice.codesegment.CodeSegment;
8 7
9 public class Command { 8 public class Command {
18 public String reverseKey; 17 public String reverseKey;
19 public Object obj; 18 public Object obj;
20 public DataSegmentValue dsv; 19 public DataSegmentValue dsv;
21 20
22 public Command(CommandType cmdType, int seq, DataSegmentValue dsv){ 21 public Command(CommandType cmdType, int seq, DataSegmentValue dsv){
23 this.type = cmdType; 22 this.type=cmdType;
24 this.seq = seq; 23 this.seq=seq;
25 this.dsv = dsv; 24 this.dsv=dsv;
26 } 25 }
27 26
28 public Command(CommandType cmdType, Receiver receiver, String key, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) { 27 public Command(CommandType cmdType, Receiver receiver, String key, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs, String reverseKey) {
29 this.type = cmdType; 28 this.type = cmdType;
30 this.receiver = receiver; 29 this.receiver = receiver;
60 this.cs = cs; 59 this.cs = cs;
61 this.reverseKey = reverseKey; 60 this.reverseKey = reverseKey;
62 } 61 }
63 62
64 63
64
65
65 public String getCommandString() { 66 public String getCommandString() {
66 String csName = "null"; 67 String csName = "null";
67 if (cs != null) { 68 if (cs != null) {
68 csName = cs.toString(); 69 csName = cs.toString();
69 } 70 }