view src/main/java/christie/topology/node/StartTopologyNode.java @ 272:b592fe1d4a4e default tip

create example Attendance
author matac42 <matac@cr.ie.u-ryukyu.ac.jp>
date Thu, 01 Jul 2021 20:41:07 +0900
parents daf37151dd97
children
line wrap: on
line source

package christie.topology.node;

import christie.codegear.CodeGear;
import christie.codegear.CodeGearManager;
import christie.codegear.StartCodeGear;

public class StartTopologyNode extends StartCodeGear{

    public StartTopologyNode(CodeGearManager cgm, TopologyNodeConfig conf, CodeGear startCG) {
        super(cgm);
        cgm.getLocalDGM().put("startCG", startCG);
        cgm.getLocalDGM().put("topologyNodeConfig", conf);
        cgm.setup(new TopologyNode());
    }

    public StartTopologyNode(TopologyNodeConfig conf, CodeGear startCG) {
        this(createCGM(conf.localPort), conf, startCG);
    }
}