Mercurial > hg > Members > tatsuki > Alice
view src/alice/test/topology/ring/RingFinish.java @ 65:ca42a2c8ac22
add local access api
author | kazz |
---|---|
date | Thu, 09 Feb 2012 19:33:46 +0900 |
parents | 20c67f673224 |
children |
line wrap: on
line source
package alice.test.topology.ring; import org.msgpack.type.ValueFactory; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class RingFinish extends CodeSegment { private String sendKey; public Receiver finish = ids.create(CommandType.TAKE); public RingFinish(String sendKey) { this.sendKey = sendKey; } @Override public void run() { ods.put(sendKey, "finish", ValueFactory.createNilValue()); ods.finish(sendKey); } }