Mercurial > hg > Database > Alice
view src/alice/topology/node/ConfigurationFinish.java @ 268:709936c00c89
creating reconnect manager
author | sugi |
---|---|
date | Sun, 18 Aug 2013 02:13:52 +0900 |
parents | fec0726bb126 |
children | 9982e1c4f099 |
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"); } }