view src/main/java/christie/topology/manager/TopologyFinish.java @ 52:bacc42fb65a1

fix topologyFinish commentout system.exit
author akahori
date Thu, 23 Aug 2018 09:53:55 +0900
parents ea9657dc8311
children cfd79a71f9cd
line wrap: on
line source

package christie.topology.manager;

import christie.annotation.Peek;
import christie.annotation.Take;
import christie.codegear.CodeGear;
import christie.codegear.CodeGearManager;


public class TopologyFinish extends CodeGear {


    // Question: Finishもどこで使われているかわかんない.
    //public Receiver finish = ids.create(CommandType.TAKE);
    //cs2.finish.setKey("local", "finish");

    @Peek
    TopologyManagerConfig config;

    @Take
    Long startTime;

    @Override
    protected void run(CodeGearManager cgm) {

        if (config.showTime) {
            System.out.println("TopologymanagerTime = "+ (System.currentTimeMillis()-startTime));
        }
        //System.exit(0);
    }

}