using Christie_net.annotation; using Christie_net.codegear; namespace Christie_net.topology.node { public class TopologyNodeConnected : CodeGear { [Take] public HostMessage hostMessage; [Peek] public TopologyNodeConfig topologyNodeConfig; public TopologyNodeConnected() { } public override void Run(CodeGearManager cgm) { hostMessage.setCookie(topologyNodeConfig.cookie); hostMessage.setHostAndPort(hostMessage.getHostName(),cgm.localPort); GetDgm(topologyNodeConfig.getManagerKey()).Put("hostMessage", hostMessage); } } }