view src/main/java/alice/daemon/CommandMessage.java @ 599:3284428f525e dispose

add MetaCodeSegment & MetaDSM
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Mon, 15 Feb 2016 01:16:35 +0900
parents ea21af9a4762
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 index;//キューの中でのDSの位置?
    public int seq;//DSの待ち合わせを行っているCSを表すunique number
    public String key;//DS key
    public boolean quickFlag = false;//SEDAを挟まずに処理を行うかどうか
    public boolean compressed = false;//圧縮されているかどうか
    public int dataSize = 0;//圧縮前のサイズ
    public boolean meta = false;

    //計測用
    public boolean setTime = false;
    public long time;
    public int depth;
    public boolean setZepped = false;
    public int zippedDataSize;//圧縮後のサイズ

    public CommandMessage() {}

    public CommandMessage(int type, int index, int seq, String key
            , boolean qFlag, boolean cFlag, int datasize, boolean mFlag) {
        this.type = type;
        this.index = index;
        this.seq = seq;
        this.key = key;
        this.quickFlag = qFlag;
        this.compressed = cFlag;
        this.dataSize = datasize;
        this.meta = mFlag;
    }

}