Mercurial > hg > Database > Alice
diff src/alice/topology/node/StartTopologyNode.java @ 182:52a1fa5ba38b working
add filp api
author | e095732 |
---|---|
date | Tue, 26 Feb 2013 13:46:18 +0900 |
parents | d7816b9b72e9 |
children | 75150396681c |
line wrap: on
line diff
--- a/src/alice/topology/node/StartTopologyNode.java Fri Feb 08 19:03:52 2013 +0900 +++ b/src/alice/topology/node/StartTopologyNode.java Tue Feb 26 13:46:18 2013 +0900 @@ -3,6 +3,7 @@ import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; +import java.net.UnknownHostException; import java.util.Enumeration; import alice.codesegment.CodeSegment; @@ -23,12 +24,12 @@ public void run() { DataSegment.connect("manager", "", conf.managerHostName, conf.managerPort); String localHostName = null; - //localHostName = InetAddress.getLocalHost().getHostName(); try { - localHostName = getIPAddress(); - } catch (SocketException e) { + localHostName = InetAddress.getLocalHost().getHostName(); + } catch (UnknownHostException e) { e.printStackTrace(); } + HostMessage host = new HostMessage(localHostName, conf.localPort); ods.put("manager", "host", host);