Mercurial > hg > Database > Alice
view src/main/java/alice/topology/manager/ConfigWaiter.java @ 419:aefbe41fcf12 dispose
change tab to space
author | sugi |
---|---|
date | Tue, 15 Jul 2014 16:00:22 +0900 |
parents | 91e1b063a89f |
children | 59e84cd75403 |
line wrap: on
line source
package alice.topology.manager; import org.msgpack.type.ValueFactory; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class ConfigWaiter extends CodeSegment { public Receiver done = ids.create(CommandType.TAKE); public int count; public ConfigWaiter(int nodeNum) { this.count = nodeNum; } @Override public void run() { count--; if (count == 0) { ods.put("local", "start", ValueFactory.createNilValue()); return; } ConfigWaiter cs3 = new ConfigWaiter(count); cs3.done.setKey("local", "done"); } }