view src/main/java/christie/topology/node/IncomingReverseKey.java @ 68:37601b98f0da

update TopologyNode
author akahori
date Sat, 01 Sep 2018 08:10:15 +0900
parents 20d4c0cce914
children c0c29f989af3
line wrap: on
line source

package christie.topology.node;


import christie.annotation.Peek;
import christie.annotation.Take;
import christie.codegear.CodeGear;
import christie.codegear.CodeGearManager;
import christie.daemon.IncomingTcpConnection;

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());
    }

}