view src/main/java/alice/daemon/CommandMessage.java @ 523:145c425db88d dispose

add CompressedLDSM
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Thu, 09 Apr 2015 18:36:26 +0900
parents 7ef0ebb40c9b
children cb7c31848d16
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 index;//キューの中でのDSの位置?
    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 boolean setTime = false;//?
    public long time;//?
    public int depth;//?

    public CommandMessage() {}

    public CommandMessage(int type, int index, int seq, String key
            , boolean qFlag, boolean sFlag, boolean cFlag) {//コンストラクタ. setter.
        this.type = type;
        this.index = index;
        this.seq = seq;
        this.key = key;
        this.quickFlag = qFlag;
        this.serialized = sFlag;
        this.compressed = cFlag;
    }
}