Mercurial > hg > Database > Christie
diff src/main/java/christie/topology/manager/CheckComingHost.java @ 44:6664efac18ee
fix CheckCommingHost ConfigWaiter IncommingHosts
author | akahori |
---|---|
date | Thu, 02 Aug 2018 11:44:47 +0900 |
parents | cf5a75bc3e55 |
children | 8dfd93810041 |
line wrap: on
line diff
--- a/src/main/java/christie/topology/manager/CheckComingHost.java Thu Aug 02 11:41:29 2018 +0900 +++ b/src/main/java/christie/topology/manager/CheckComingHost.java Thu Aug 02 11:44:47 2018 +0900 @@ -22,31 +22,21 @@ @Override public void run(CodeGearManager cgm) { - boolean match = false; // check cookie if (hostMessage.cookie != null) { if (absCookieTable.containsKey(hostMessage.cookie)){ - match = true; hostMessage.absName = absCookieTable.get(hostMessage.cookie); System.out.println("match"); + // coming host has ever joined this App + getLocalDGM().put("reconnectHost", hostMessage); + cgm.setup(new SearchHostName()); + }else { + getLocalDGM().put("orderHash", "order"); + getLocalDGM().put("newHost", hostMessage); } } - if (match){ - // coming host has ever joined this App - getLocalDGM().put("reconnectHost", hostMessage); - - // TODO: これから実装する - //new SearchHostName(); - } else { - getLocalDGM().put("orderHash", "order"); - getLocalDGM().put("newHost", hostMessage); - } - cgm.setup(new CheckComingHost()); } - - - }