Mercurial > hg > Database > Christie
comparison src/main/java/christie/test/topology/localTestTopology/StartLTCodeGear.java @ 69:251e306094d4
update localTestTopology
author | akahori |
---|---|
date | Sat, 01 Sep 2018 08:10:55 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:37601b98f0da | 69:251e306094d4 |
---|---|
1 package christie.test.topology.localTestTopology; | |
2 | |
3 import christie.annotation.Peek; | |
4 import christie.annotation.Take; | |
5 import christie.codegear.CodeGear; | |
6 import christie.codegear.CodeGearManager; | |
7 | |
8 public class StartLTCodeGear extends CodeGear{ | |
9 | |
10 @Take | |
11 boolean running; | |
12 | |
13 @Override | |
14 protected void run(CodeGearManager cgm){ | |
15 if(running) cgm.getDGM("node1").put("num", 0); | |
16 else { | |
17 cgm.setup(new StartLTCodeGear()); | |
18 getLocalDGM().put("running", running); | |
19 } | |
20 } | |
21 } |