Mercurial > hg > Database > Christie
view 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 |
line wrap: on
line source
package christie.topology.node; import christie.annotation.Take; import christie.codegear.CodeGear; import christie.codegear.CodeGearManager; // pingを受け取るみたいなクラス. 相手がreverseNodeNameを送ってきたらreverseCountをプラスする public class IncomingReverseKey extends CodeGear { @Take String reverseNodeName; @Take int reverseCount; @Override protected void run(CodeGearManager cgm) { reverseCount++; getLocalDGM().put( "reverseCount", reverseCount); cgm.setup(new IncomingReverseKey()); } }