Mercurial > hg > Database > Christie
diff 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 |
line wrap: on
line diff
--- a/src/main/java/christie/topology/node/StartTopologyNode.java Sat Sep 15 19:00:49 2018 +0900 +++ b/src/main/java/christie/topology/node/StartTopologyNode.java Mon Sep 17 11:20:26 2018 +0900 @@ -14,6 +14,13 @@ } + public StartTopologyNode(TopologyNodeConfig conf, CodeGear startCG) { + super(createCGM(conf.localPort)); + getLocalDGM().put("startCG", startCG); + getLocalDGM().put("topologyNodeConfig", conf); + + } + public static void main(String[] args) { TopologyNodeConfig conf = new TopologyNodeConfig(args); //new TopologyNode(conf, null); @@ -21,6 +28,8 @@ @Override protected void run(CodeGearManager cgm) { + cgm.setup(new TopologyNode()); + } }