view src/alice/datasegment/Command.java @ 18:72dd27d952b0

change InputDataSegment API
author kazz <kazz@cr.ie.u-ryukyu.ac.jp>
date Sun, 15 Jan 2012 16:03:11 +0900
parents 433e601a8e28
children 98ab26e09a98
line wrap: on
line source

package alice.datasegment;

import java.util.concurrent.BlockingQueue;

import org.msgpack.type.Value;

import alice.codesegment.CodeSegment;

public class Command {
	public CommandType type;
	public String key;
	public DataSegmentReceiver receiver;
	public Value val;
	public int index;
	public int seq;
	public BlockingQueue<Command> replyQueue;
	public CodeSegment cs;
	
	public Command(CommandType cmdType, DataSegmentReceiver receiver, String key, Value val, int index, int seq, BlockingQueue<Command> replyQueue, CodeSegment cs) {
		this.type = cmdType;
		this.receiver = receiver;
		this.key = key;
		this.val = val;
		this.index = index;
		this.seq = seq;
		this.replyQueue = replyQueue;
		this.cs = cs;
	}
	
}