Mercurial > hg > Members > tatsuki > Alice
view src/alice/topology/manager/ConfigWaiter.java @ 270:23e53aaa8720
reconnect manager worked.
author | sugi |
---|---|
date | Wed, 21 Aug 2013 15:33:49 +0900 |
parents | ac3b48c5f4da |
children |
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; import alice.topology.manager.reconnection.ReceiveError; 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()); new ReceiveError(); return; } ConfigWaiter cs3 = new ConfigWaiter(count); cs3.done.setKey("local", "done"); } }