diff src/main/java/alice/topology/manager/CheckComingHost.java @ 435:41bb86275910 dispose

send MD5 "mode -t"
author sugi
date Tue, 12 Aug 2014 07:37:17 +0900
parents 4c62f76894c8
children a9ed8e932a1e
line wrap: on
line diff
--- a/src/main/java/alice/topology/manager/CheckComingHost.java	Mon Aug 11 18:45:33 2014 +0900
+++ b/src/main/java/alice/topology/manager/CheckComingHost.java	Tue Aug 12 07:37:17 2014 +0900
@@ -9,7 +9,7 @@
 public class CheckComingHost extends CodeSegment {
     // checkIncomingHost
     private Receiver host = ids.create(CommandType.TAKE); 
-    private Receiver absCookieTable = ids.create(CommandType.TAKE); // cookie, AbsName HashMap
+    private Receiver absCookieTable = ids.create(CommandType.PEEK); // cookie, AbsName HashMap
 
     public CheckComingHost(){
         this.host.setKey("host");
@@ -27,7 +27,7 @@
             if (absCookieTable.containsKey(host.cookie)){
                 match = true;
                 host.absName = absCookieTable.get(host.cookie);
-
+                
             }
         }
 
@@ -35,6 +35,7 @@
             // coming host has ever joined this App
             System.out.println("reconnect host");
             ods.put("reconnectHost", host);
+            new SearchHostName();
         } else {
             System.out.println("new host");
             ods.put("orderHash", "order");