Mercurial > hg > Database > Christie
comparison 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 |
comparison
equal
deleted
inserted
replaced
42:d7ac4abc0447 | 43:ea9657dc8311 |
---|---|
1 package christie.topology.manager; | |
2 | |
3 import christie.annotation.Peek; | |
4 import christie.annotation.Take; | |
5 import christie.codegear.CodeGear; | |
6 import christie.codegear.CodeGearManager; | |
7 | |
8 | |
9 public class TopologyFinish extends CodeGear { | |
10 | |
11 | |
12 // Question: Finishもどこで使われているかわかんない. | |
13 //public Receiver finish = ids.create(CommandType.TAKE); | |
14 //cs2.finish.setKey("local", "finish"); | |
15 | |
16 @Peek | |
17 TopologyManagerConfig config; | |
18 | |
19 @Take | |
20 Long startTime; | |
21 | |
22 @Override | |
23 protected void run(CodeGearManager cgm) { | |
24 | |
25 if (config.showTime) { | |
26 System.out.println("TopologymanagerTime = "+ (System.currentTimeMillis()-startTime)); | |
27 } | |
28 System.exit(0); | |
29 } | |
30 | |
31 } |