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

update comment add
author akahori
date Sat, 15 Sep 2018 09:25:55 +0900
parents 37601b98f0da
children
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
fd944876257b add node and keepalive
akahori
parents:
diff changeset
4 import christie.annotation.Take;
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;
84
c0c29f989af3 update comment add
akahori
parents: 68
diff changeset
7
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
8
84
c0c29f989af3 update comment add
akahori
parents: 68
diff changeset
9 // pingを受け取るみたいなクラス. 相手がreverseNodeNameを送ってきたらreverseCountをプラスする
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
10 public class IncomingReverseKey extends CodeGear {
fd944876257b add node and keepalive
akahori
parents:
diff changeset
11
fd944876257b add node and keepalive
akahori
parents:
diff changeset
12 @Take
68
37601b98f0da update TopologyNode
akahori
parents: 61
diff changeset
13 String reverseNodeName;
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
14
61
20d4c0cce914 refactor Topology Node
akahori
parents: 49
diff changeset
15 @Take
49
fd944876257b add node and keepalive
akahori
parents:
diff changeset
16 int reverseCount;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
17
fd944876257b add node and keepalive
akahori
parents:
diff changeset
18 @Override
fd944876257b add node and keepalive
akahori
parents:
diff changeset
19 protected void run(CodeGearManager cgm) {
fd944876257b add node and keepalive
akahori
parents:
diff changeset
20 reverseCount++;
fd944876257b add node and keepalive
akahori
parents:
diff changeset
21 getLocalDGM().put( "reverseCount", reverseCount);
fd944876257b add node and keepalive
akahori
parents:
diff changeset
22 cgm.setup(new IncomingReverseKey());
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 }