diff src/jungle/test/bbs/codesegment/PutHostLogCodeSegment.java @ 40:7e94de2d6bc0

add PutAnotherLogCodeSegment, PutHostLogCodeSegment
author one
date Tue, 09 Jul 2013 17:32:06 +0900
parents
children b8b9668da13c
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/jungle/test/bbs/codesegment/PutHostLogCodeSegment.java	Tue Jul 09 17:32:06 2013 +0900
@@ -0,0 +1,19 @@
+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() {
+		Value v = (Value) arg1.getVal();
+		ods.put("remote", "hostLog", v);
+		PutHostLogCodeSegment cs = new PutHostLogCodeSegment();
+		cs.arg1.setKey("local", "log");
+	}
+}