49
|
1 package christie.topology.node;
|
|
2
|
|
3
|
|
4 import christie.annotation.Take;
|
|
5 import christie.codegear.CodeGear;
|
|
6 import christie.codegear.CodeGearManager;
|
84
|
7
|
49
|
8
|
84
|
9 // pingを受け取るみたいなクラス. 相手がreverseNodeNameを送ってきたらreverseCountをプラスする
|
49
|
10 public class IncomingReverseKey extends CodeGear {
|
|
11
|
|
12 @Take
|
68
|
13 String reverseNodeName;
|
49
|
14
|
61
|
15 @Take
|
49
|
16 int reverseCount;
|
|
17
|
|
18 @Override
|
|
19 protected void run(CodeGearManager cgm) {
|
|
20 reverseCount++;
|
|
21 getLocalDGM().put( "reverseCount", reverseCount);
|
|
22 cgm.setup(new IncomingReverseKey());
|
|
23 }
|
|
24
|
|
25 }
|