Mercurial > hg > Database > Alice
view src/main/java/alice/test/topology/ring/RingFinish.java @ 419:aefbe41fcf12 dispose
change tab to space
author | sugi |
---|---|
date | Tue, 15 Jul 2014 16:00:22 +0900 |
parents | 8f71c3e6f11d |
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); } }