Mercurial > hg > Database > Christie
comparison src/main/java/christie/topology/manager/SearchHostName.java @ 60:cfd79a71f9cd
refactor topology manager
author | akahori |
---|---|
date | Tue, 28 Aug 2018 10:49:26 +0900 |
parents | 8dfd93810041 |
children | f884c1bd0d36 |
comparison
equal
deleted
inserted
replaced
59:76b6da075ce0 | 60:cfd79a71f9cd |
---|---|
14 public class SearchHostName extends CodeGear { | 14 public class SearchHostName extends CodeGear { |
15 | 15 |
16 @Take // reconnect NodeInfo | 16 @Take // reconnect NodeInfo |
17 HostMessage reconnectHost; | 17 HostMessage reconnectHost; |
18 | 18 |
19 @Take | 19 @Peek |
20 HashMap<String, LinkedList<HostMessage>> topology; | 20 HashMap<String, LinkedList<HostMessage>> topology; |
21 | 21 |
22 @Peek | 22 @Peek |
23 boolean running; | 23 boolean running; |
24 | 24 |
79 for (HostMessage host : list){ | 79 for (HostMessage host : list){ |
80 System.out.print("[ "+host.absName+" "+host.hostName+" "+host.port+" "+host.connectionName+" "+host.reverseName+" "+host.remoteAbsName+" ]"); | 80 System.out.print("[ "+host.absName+" "+host.hostName+" "+host.port+" "+host.connectionName+" "+host.reverseName+" "+host.remoteAbsName+" ]"); |
81 } | 81 } |
82 System.out.println(); | 82 System.out.println(); |
83 } | 83 } |
84 | |
85 getLocalDGM().put("topology", topology); | |
86 | |
87 } | 84 } |
88 | 85 |
89 } | 86 } |