annotate src/main/java/christie/topology/node/ConfigurationFinish.java @ 84:c0c29f989af3

update comment add
author akahori
date Sat, 15 Sep 2018 09:25:55 +0900
parents 36c5c050394d
children 2c22b23fa725
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
1 package christie.topology.node;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
2
fd944876257b add node and keepalive
akahori
parents:
diff changeset
3 import christie.annotation.Peek;
61
20d4c0cce914 refactor Topology Node
akahori
parents: 59
diff changeset
4 import christie.annotation.Take;
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
5 import christie.codegear.CodeGear;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
6 import christie.codegear.CodeGearManager;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
7 import christie.daemon.Config;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
8 import christie.topology.manager.keepalive.KeepAlive;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
9 import org.msgpack.type.ValueFactory;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
10
fd944876257b add node and keepalive
akahori
parents:
diff changeset
11 public class ConfigurationFinish extends CodeGear {
fd944876257b add node and keepalive
akahori
parents:
diff changeset
12
fd944876257b add node and keepalive
akahori
parents:
diff changeset
13 @Peek
fd944876257b add node and keepalive
akahori
parents:
diff changeset
14 int reverseCount;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
15
fd944876257b add node and keepalive
akahori
parents:
diff changeset
16 @Peek
68
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
17 int connectNodeNum;
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
18
fd944876257b add node and keepalive
akahori
parents:
diff changeset
19 @Peek
68
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
20 TopologyNodeConfig topologyNodeConfig;
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
21
61
20d4c0cce914 refactor Topology Node
akahori
parents: 59
diff changeset
22 public ConfigurationFinish() {
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
23 }
fd944876257b add node and keepalive
akahori
parents:
diff changeset
24
fd944876257b add node and keepalive
akahori
parents:
diff changeset
25 @Override
fd944876257b add node and keepalive
akahori
parents:
diff changeset
26 protected void run(CodeGearManager cgm) {
68
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
27 if (reverseCount == connectNodeNum) {
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
28 getDGM(topologyNodeConfig.getManagerKey()).put("nodePrepareDone", "done");
71
36c5c050394d update put startCG
akahori
parents: 68
diff changeset
29 cgm.setup(new Start());
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
30
68
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
31
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
32 /*if (topologyNodeConfig.useKeepAlive)
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
33 cgm.setup(new KeepAlive());
fd944876257b add node and keepalive
akahori
parents:
diff changeset
34 cgm.setup(new PrepareToClose());
68
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
35 ClosedEventManager.getInstance().register(DeleteConnection.class);
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
36 ClosedEventManager.getInstance().setKey();*/
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
37 return;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
38 }
fd944876257b add node and keepalive
akahori
parents:
diff changeset
39
71
36c5c050394d update put startCG
akahori
parents: 68
diff changeset
40 cgm.setup(new ConfigurationFinish());
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
41 }
fd944876257b add node and keepalive
akahori
parents:
diff changeset
42 }