view src/main/java/christie/topology/node/Start.java @ 71:36c5c050394d

update put startCG
author akahori
date Sat, 01 Sep 2018 10:00:19 +0900
parents 37601b98f0da
children e4d16deb9627
line wrap: on
line source

package christie.topology.node;

import christie.annotation.Peek;
import christie.annotation.PeekFrom;
import christie.annotation.Take;
import christie.codegear.CodeGear;
import christie.codegear.CodeGearManager;
import christie.test.topology.localTestTopology.LTRemoteIncrement;
import org.apache.log4j.Logger;

public class Start extends CodeGear {

    @Peek
    String start;

    private Logger logger = Logger.getLogger(Start.class);

    @Take
    CodeGear startCG;


    public Start() {
    }

    @Override
    protected void run(CodeGearManager cgm) {
        logger.info("Configuration finished.");

        if (startCG == null) return;
        cgm.setup(startCG);

    }

}