Mercurial > hg > Database > Alice
annotate src/alice/test/codesegment/RemoteStartCodeSegment.java @ 18:72dd27d952b0
change InputDataSegment API
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 15 Jan 2012 16:03:11 +0900 |
parents | e3f1b21718b0 |
children | e7867328a2fb |
rev | line source |
---|---|
14 | 1 package alice.test.codesegment; |
2 | |
3 import org.msgpack.type.Value; | |
4 import org.msgpack.type.ValueFactory; | |
5 | |
6 import alice.codesegment.CodeSegment; | |
7 | |
8 public class RemoteStartCodeSegment extends CodeSegment { | |
18
72dd27d952b0
change InputDataSegment API
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
14
diff
changeset
|
9 |
14 | 10 @Override |
11 public void run() { | |
18
72dd27d952b0
change InputDataSegment API
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
14
diff
changeset
|
12 RemoteIncrement cs = new RemoteIncrement(); |
72dd27d952b0
change InputDataSegment API
kazz <kazz@cr.ie.u-ryukyu.ac.jp>
parents:
14
diff
changeset
|
13 cs.num.setKey("remote", "num"); |
14 | 14 cs.ids.execute(); |
15 | |
16 Value num = ValueFactory.createIntegerValue(0); | |
17 ods.put("local", "num", num); | |
18 } | |
19 | |
20 } |