Mercurial > hg > Database > Christie
view src/main/java/christie/topology/node/TopologyNode.java @ 133:114e0e5b6564
fix prepartoclose
author | akahori |
---|---|
date | Tue, 25 Dec 2018 17:10:49 +0900 |
parents | 42f195de3152 |
children | 5c5a5da0d13d |
line wrap: on
line source
package christie.topology.node; import christie.annotation.Peek; import christie.codegear.CodeGear; import christie.codegear.CodeGearManager; import christie.topology.HostMessage; import java.net.InetAddress; import java.net.UnknownHostException; import java.util.ArrayList; public class TopologyNode extends CodeGear{ @Peek TopologyNodeConfig topologyNodeConfig; public TopologyNode() { } @Override protected void run(CodeGearManager cgm) { cgm.createRemoteDGM(topologyNodeConfig.getManagerKey(), topologyNodeConfig.getManagerHostName(), topologyNodeConfig.getManagerPort()); HostMessage hostMessage = new HostMessage(); hostMessage.setLocalHostAndPort(cgm.localPort); hostMessage.setCookie(topologyNodeConfig.cookie); getDGM(topologyNodeConfig.getManagerKey()).put("hostMessage", hostMessage); getLocalDGM().put("_CLIST", new ArrayList<String>()); getLocalDGM().put("reverseCount", 0); cgm.setup(new IncomingConnectionInfo()); cgm.setup(new ConfigurationFinish()); } }