Mercurial > hg > Database > Christie
diff src/main/java/christie/topology/manager/TopologyFinish.java @ 43:ea9657dc8311
add CreateHash SearchHostName TopologyManager
author | akahori |
---|---|
date | Thu, 02 Aug 2018 11:41:29 +0900 |
parents | |
children | bacc42fb65a1 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/christie/topology/manager/TopologyFinish.java Thu Aug 02 11:41:29 2018 +0900 @@ -0,0 +1,31 @@ +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); + } + +}