43
|
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 }
|