comparison src/main/java/christie/topology/node/StartTopologyNode.java @ 96:bf6ab64325f9

add Constoractor
author akahori
date Mon, 17 Sep 2018 11:20:26 +0900
parents 36c5c050394d
children 2043f2001a91
comparison
equal deleted inserted replaced
95:5cd99bac9abd 96:bf6ab64325f9
12 cgm.getLocalDGM().put("startCG", startCG); 12 cgm.getLocalDGM().put("startCG", startCG);
13 cgm.getLocalDGM().put("topologyNodeConfig", conf); 13 cgm.getLocalDGM().put("topologyNodeConfig", conf);
14 14
15 } 15 }
16 16
17 public StartTopologyNode(TopologyNodeConfig conf, CodeGear startCG) {
18 super(createCGM(conf.localPort));
19 getLocalDGM().put("startCG", startCG);
20 getLocalDGM().put("topologyNodeConfig", conf);
21
22 }
23
17 public static void main(String[] args) { 24 public static void main(String[] args) {
18 TopologyNodeConfig conf = new TopologyNodeConfig(args); 25 TopologyNodeConfig conf = new TopologyNodeConfig(args);
19 //new TopologyNode(conf, null); 26 //new TopologyNode(conf, null);
20 } 27 }
21 28
22 @Override 29 @Override
23 protected void run(CodeGearManager cgm) { 30 protected void run(CodeGearManager cgm) {
31 cgm.setup(new TopologyNode());
32
24 } 33 }
25 34
26 } 35 }