view src/main/java/christie/topology/node/IncomingReverseKey.java @ 83:2314c55534ef

add TreeTopology
author akahori
date Sat, 15 Sep 2018 09:24:36 +0900
parents 37601b98f0da
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());
    }

}