Mercurial > hg > Members > tatsuki > Alice
view src/alice/topology/node/ConfigurationFinish.java @ 39:3155337e754e
add logger
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 27 Jan 2012 16:57:26 +0900 |
parents | 0b25b48116b6 |
children | 1a498f436332 |
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 Class<? extends CodeSegment> clazz; public ConfigurationFinish(Class<? extends CodeSegment> clazz) { this.clazz = clazz; } @Override public void run() { if (reverseCount.val.equals(configNodeNum.val)) { ods.put("manager", "done", ValueFactory.createNilValue()); Start cs = new Start(clazz); cs.done.setKey("manager", "start"); return; } ConfigurationFinish cs3 = new ConfigurationFinish(clazz); cs3.reverseCount.setKey("local", "reverseCount", this.reverseCount.index); cs3.configNodeNum.setKey("local", "configNodeNum"); } }