Mercurial > hg > Database > jungle-network
diff src/jungle/test/bbs/codesegment/PutAnotherLogCodeSegment.java @ 40:7e94de2d6bc0
add PutAnotherLogCodeSegment, PutHostLogCodeSegment
author | one |
---|---|
date | Tue, 09 Jul 2013 17:32:06 +0900 |
parents | |
children | 4419ac56cbfd |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/jungle/test/bbs/codesegment/PutAnotherLogCodeSegment.java Tue Jul 09 17:32:06 2013 +0900 @@ -0,0 +1,21 @@ +package jungle.test.bbs.codesegment; + +import org.msgpack.type.Value; + +import alice.codesegment.CodeSegment; +import alice.datasegment.CommandType; +import alice.datasegment.Receiver; + +public class PutAnotherLogCodeSegment extends CodeSegment { + + public Receiver arg1 = ids.create(CommandType.TAKE); + + public void run() { + Value v = (Value)arg1.getVal(); + ods.put("remote", "anotherLog", v); + PutAnotherLogCodeSegment cs = new PutAnotherLogCodeSegment(); + cs.arg1.setKey("local", "log"); + + } + +}