Mercurial > hg > Database > Alice
annotate src/main/java/alice/daemon/CommandMessage.java @ 574:ea21af9a4762 dispose
delete serializeFlag, fix MessagePack pack&unpack
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 15 Dec 2015 11:49:07 +0900 |
parents | f1777341c5a2 |
children | 3284428f525e |
rev | line source |
---|---|
345 | 1 package alice.daemon; |
2 | |
3 import org.msgpack.annotation.Message; | |
4 | |
523
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
5 /** |
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
6 * DSのヘッダー |
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
7 */ |
345 | 8 @Message |
9 public class CommandMessage { | |
523
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
10 public int type;//PUT, PEEKなどのコマンドタイプ |
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
11 public int index;//キューの中でのDSの位置? |
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
12 public int seq;//DSの待ち合わせを行っているCSを表すunique number |
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
13 public String key;//DS key |
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
14 public boolean quickFlag = false;//SEDAを挟まずに処理を行うかどうか |
145c425db88d
add CompressedLDSM
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
488
diff
changeset
|
15 public boolean compressed = false;//圧縮されているかどうか |
560
72ef96ba4195
add zeppedDataSize in CommandMessage
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
555
diff
changeset
|
16 public int dataSize = 0;//圧縮前のサイズ |
467 | 17 |
560
72ef96ba4195
add zeppedDataSize in CommandMessage
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
555
diff
changeset
|
18 //計測用 |
72ef96ba4195
add zeppedDataSize in CommandMessage
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
555
diff
changeset
|
19 public boolean setTime = false; |
72ef96ba4195
add zeppedDataSize in CommandMessage
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
555
diff
changeset
|
20 public long time; |
72ef96ba4195
add zeppedDataSize in CommandMessage
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
555
diff
changeset
|
21 public int depth; |
561
f1777341c5a2
add setZipped to CommandMessage&ReceiveData
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
560
diff
changeset
|
22 public boolean setZepped = false; |
f1777341c5a2
add setZipped to CommandMessage&ReceiveData
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
560
diff
changeset
|
23 public int zippedDataSize;//圧縮後のサイズ |
488 | 24 |
419 | 25 public CommandMessage() {} |
26 | |
450 | 27 public CommandMessage(int type, int index, int seq, String key |
574
ea21af9a4762
delete serializeFlag, fix MessagePack pack&unpack
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
561
diff
changeset
|
28 , boolean qFlag, boolean cFlag, int datasize) { |
419 | 29 this.type = type; |
30 this.index = index; | |
31 this.seq = seq; | |
32 this.key = key; | |
449 | 33 this.quickFlag = qFlag; |
452 | 34 this.compressed = cFlag; |
530 | 35 this.dataSize = datasize; |
419 | 36 } |
555
2af387211a85
add zippedDataSize to ReceiveData
Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
parents:
530
diff
changeset
|
37 |
345 | 38 } |