comparison src/main/java/alice/topology/manager/IncomingHosts.java @ 558:0259a8aba18c dispose

add ip to HostMessage.class, delete System.out in ReceiveData, some TopM class change using ip connection
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Sat, 21 Nov 2015 18:23:51 +0900
parents 1a860019b2fe
children
comparison
equal deleted inserted replaced
557:1a860019b2fe 558:0259a8aba18c
51 51
52 ods.put(nodeName, "cookie", cookie); 52 ods.put(nodeName, "cookie", cookie);
53 53
54 LinkedList<NodeInfo> nodes = topology.get(nodeName); 54 LinkedList<NodeInfo> nodes = topology.get(nodeName);
55 for (NodeInfo nodeInfo : nodes) { 55 for (NodeInfo nodeInfo : nodes) {
56 HostMessage newHost = new HostMessage(host.name, host.port, 56 HostMessage newHost = new HostMessage(host.name, host.ip, host.port,
57 nodeInfo.connectionName, nodeInfo.reverseName); 57 nodeInfo.connectionName, nodeInfo.reverseName);
58 newHost.absName = nodeName; 58 newHost.absName = nodeName;
59 newHost.remoteAbsName = nodeInfo.sourceNodeName; 59 newHost.remoteAbsName = nodeInfo.sourceNodeName;
60 60
61 ods.put("nodeInfo", newHost); 61 ods.put("nodeInfo", newHost);