comparison src/main/java/alice/topology/manager/IncomingHosts.java @ 557:1a860019b2fe dispose

add ip to HostMessage.class
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Fri, 20 Nov 2015 17:57:55 +0900
parents 268b1280dc18
children 0259a8aba18c
comparison
equal deleted inserted replaced
556:65b615d3a30c 557:1a860019b2fe
1 package alice.topology.manager; 1 package alice.topology.manager;
2 2
3 import java.net.InetAddress;
4 import java.net.UnknownHostException;
3 import java.util.HashMap; 5 import java.util.HashMap;
4 import java.util.LinkedList; 6 import java.util.LinkedList;
5 7
6 import org.msgpack.type.ValueFactory; 8 import org.msgpack.type.ValueFactory;
7 9
38 LinkedList<String> nodeNames = this.nodeNames.asClass(LinkedList.class); 40 LinkedList<String> nodeNames = this.nodeNames.asClass(LinkedList.class);
39 41
40 // not have or match cookie 42 // not have or match cookie
41 String nodeName = nodeNames.poll(); 43 String nodeName = nodeNames.poll();
42 // Manager connect to Node 44 // Manager connect to Node
43 DataSegment.connect(nodeName, "", host.name, host.port); 45 DataSegment.connect(nodeName, "", host.ip, host.port);
44 ods.put(nodeName, "host", nodeName); 46 ods.put(nodeName, "host", nodeName);
45 47
46 String cookie = this.cookie.asString(); 48 String cookie = this.cookie.asString();
47 absCookieTable.put(cookie, nodeName); 49 absCookieTable.put(cookie, nodeName);
48 ods.put(this.absCookieTable.key, absCookieTable); 50 ods.put(this.absCookieTable.key, absCookieTable);