Mercurial > hg > Database > Christie
comparison src/main/java/christie/topology/manager/CheckComingHost.java @ 94:87a203c99177
update HostMessage refactor
author | akahori |
---|---|
date | Sat, 15 Sep 2018 18:59:12 +0900 |
parents | f884c1bd0d36 |
children |
comparison
equal
deleted
inserted
replaced
93:7abfe041b75c | 94:87a203c99177 |
---|---|
20 } | 20 } |
21 | 21 |
22 @Override | 22 @Override |
23 protected void run(CodeGearManager cgm) { | 23 protected void run(CodeGearManager cgm) { |
24 | 24 |
25 String cookie = hostMessage.getCookie(); | |
25 // check cookie | 26 // check cookie |
26 if (hostMessage.cookie != null) { | 27 if (cookie != null) { |
27 if (absCookieTable.containsKey(hostMessage.cookie)) { | 28 if (absCookieTable.containsKey(cookie)) { |
28 hostMessage.nodeName = absCookieTable.get(hostMessage.cookie); | 29 hostMessage.setNodeName(cookie); |
29 System.out.println("match"); | 30 System.out.println("match"); |
30 // coming host has ever joined this App | 31 // coming host has ever joined this App |
31 getLocalDGM().put("reconnectHost", hostMessage); | 32 getLocalDGM().put("reconnectHost", hostMessage); |
32 cgm.setup(new SearchHostName()); | 33 cgm.setup(new SearchHostName()); |
33 } | 34 } |