Mercurial > hg > Database > Christie
view src/main/java/christie/test/topology/localTestTopology/StartLTCodeGear.java @ 72:32f6f9de97c1
add ring.dot
author | akahori |
---|---|
date | Sat, 01 Sep 2018 10:22:27 +0900 |
parents | 251e306094d4 |
children |
line wrap: on
line source
package christie.test.topology.localTestTopology; import christie.annotation.Peek; import christie.annotation.Take; import christie.codegear.CodeGear; import christie.codegear.CodeGearManager; public class StartLTCodeGear extends CodeGear{ @Take boolean running; @Override protected void run(CodeGearManager cgm){ if(running) cgm.getDGM("node1").put("num", 0); else { cgm.setup(new StartLTCodeGear()); getLocalDGM().put("running", running); } } }