Mercurial > hg > Database > jungle-network
comparison 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 |
comparison
equal
deleted
inserted
replaced
41:b8b9668da13c | 42:4419ac56cbfd |
---|---|
3 import org.msgpack.type.Value; | 3 import org.msgpack.type.Value; |
4 | 4 |
5 import alice.codesegment.CodeSegment; | 5 import alice.codesegment.CodeSegment; |
6 import alice.datasegment.CommandType; | 6 import alice.datasegment.CommandType; |
7 import alice.datasegment.Receiver; | 7 import alice.datasegment.Receiver; |
8 import alice.jungle.codesegment.LogUpdateCodeSegment; | |
8 | 9 |
9 public class PutAnotherLogCodeSegment extends CodeSegment { | 10 public class PutAnotherLogCodeSegment extends CodeSegment { |
10 | 11 |
11 public Receiver arg1 = ids.create(CommandType.TAKE); | 12 public Receiver arg1 = ids.create(CommandType.TAKE); |
12 | 13 |
13 public void run() { | 14 public void run() { |
15 System.out.println("Client: PutAnotherLogCodeSegment"); | |
14 Value v = (Value)arg1.getVal(); | 16 Value v = (Value)arg1.getVal(); |
15 ods.put("remote", "anotherLog", v); | 17 ods.put("remote", "anotherLog", v); |
16 PutAnotherLogCodeSegment cs = new PutAnotherLogCodeSegment(); | 18 PutAnotherLogCodeSegment cs = new PutAnotherLogCodeSegment(); |
17 cs.arg1.setKey("local", "log"); | 19 cs.arg1.setKey("local", "log"); |
18 | |
19 } | 20 } |
20 | 21 |
21 } | 22 } |