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
|
64
|
16 @Take
|
|
17 String finish;
|
|
18
|
43
|
19 @Peek
|
60
|
20 TopologyManagerConfig topologyManagerConfig;
|
43
|
21
|
|
22 @Take
|
|
23 Long startTime;
|
|
24
|
|
25 @Override
|
|
26 protected void run(CodeGearManager cgm) {
|
|
27
|
60
|
28 if (topologyManagerConfig.showTime) {
|
43
|
29 System.out.println("TopologymanagerTime = "+ (System.currentTimeMillis()-startTime));
|
|
30 }
|
98
|
31 System.exit(0);
|
43
|
32 }
|
|
33
|
|
34 }
|