Mercurial > hg > Database > Alice
view src/main/java/alice/topology/node/ConfigurationFinish.java @ 400:3a0056e03040 dispose
remove reconnection package
author | sugi |
---|---|
date | Sun, 22 Jun 2014 23:10:23 +0900 |
parents | 8f71c3e6f11d |
children | ca2947303438 |
line wrap: on
line source
package alice.topology.node; import org.msgpack.type.ValueFactory; import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; public class ConfigurationFinish extends CodeSegment { public Receiver reverseCount = ids.create(CommandType.PEEK); public Receiver configNodeNum = ids.create(CommandType.PEEK); private CodeSegment startCS; public ConfigurationFinish(CodeSegment startCS) { this.startCS = startCS; } @Override public void run() { if (reverseCount.getVal().equals(configNodeNum.getVal())) { ods.put("manager", "done", ValueFactory.createNilValue()); Start cs = new Start(startCS); cs.done.setKey("manager", "start"); return; } ConfigurationFinish cs3 = new ConfigurationFinish(startCS); cs3.reverseCount.setKey("local", "reverseCount", this.reverseCount.index); cs3.configNodeNum.setKey("local", "configNodeNum"); } }