view src/jungle/test/bbs/codesegment/PutHostLogCodeSegment.java @ 50:459b50f1a6ee

add ChildLogCheckCodeSegment.
author one
date Fri, 12 Jul 2013 20:39:02 +0900
parents 4419ac56cbfd
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;

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