view src/jungle/test/bbs/codesegment/PutAnotherLogCodeSegment.java @ 42:4419ac56cbfd

implemented serverName filed
author one
date Thu, 11 Jul 2013 19:58:36 +0900
parents 7e94de2d6bc0
children
line wrap: on
line source

package jungle.test.bbs.codesegment;

import org.msgpack.type.Value;

import alice.codesegment.CodeSegment;
import alice.datasegment.CommandType;
import alice.datasegment.Receiver;
import alice.jungle.codesegment.LogUpdateCodeSegment;

public class PutAnotherLogCodeSegment extends CodeSegment {
	
	public Receiver arg1 = ids.create(CommandType.TAKE);
	
	public void run() {
		System.out.println("Client: PutAnotherLogCodeSegment");
		Value v = (Value)arg1.getVal();
		ods.put("remote", "anotherLog", v);
		PutAnotherLogCodeSegment cs = new PutAnotherLogCodeSegment();
		cs.arg1.setKey("local", "log");		
	}

}