Mercurial > hg > Database > jungle-network
comparison 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 |
comparison
equal
deleted
inserted
replaced
39:10359a815068 | 40:7e94de2d6bc0 |
---|---|
1 package jungle.test.bbs.codesegment; | |
2 | |
3 import org.msgpack.type.Value; | |
4 | |
5 import alice.codesegment.CodeSegment; | |
6 import alice.datasegment.CommandType; | |
7 import alice.datasegment.Receiver; | |
8 | |
9 public class PutHostLogCodeSegment extends CodeSegment { | |
10 | |
11 public Receiver arg1 = ids.create(CommandType.TAKE); | |
12 | |
13 public void run() { | |
14 Value v = (Value) arg1.getVal(); | |
15 ods.put("remote", "hostLog", v); | |
16 PutHostLogCodeSegment cs = new PutHostLogCodeSegment(); | |
17 cs.arg1.setKey("local", "log"); | |
18 } | |
19 } |