Mercurial > hg > Database > Alice
view src/main/java/alice/daemon/CommandMessage.java @ 547:e91a574b69de dispose
remove index
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Aug 2015 16:15:17 +0900 |
parents | 4aeebea0c9b5 |
children |
line wrap: on
line source
package alice.daemon; import org.msgpack.annotation.Message; /** * DSのヘッダー */ @Message public class CommandMessage { public int type;//PUT, PEEKなどのコマンドタイプ public int seq;//DSの待ち合わせを行っているCSを表すunique number public String key;//DS key public boolean quickFlag = false;//SEDAを挟まずに処理を行うかどうか public boolean serialized = false;//シリアライズされているかどうか public boolean compressed = false;//圧縮されているかどうか public int dataSize = 0; public boolean setTime = false;//? public long time;//? public int depth;//? public CommandMessage() {} public CommandMessage(int type, int seq, String key , boolean qFlag, boolean sFlag, boolean cFlag, int datasize) { this.type = type; this.seq = seq; this.key = key; this.quickFlag = qFlag; this.serialized = sFlag; this.compressed = cFlag; this.dataSize = datasize; } }