Mercurial > hg > Database > Alice
comparison src/main/java/alice/topology/manager/StartTopologyManager.java @ 601:30f2c04571c2 dispose
add chat, add Star topology to topology manager&node
author | Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 27 Apr 2016 16:28:10 +0900 |
parents | 3284428f525e |
children | 8a9fd716c335 |
comparison
equal
deleted
inserted
replaced
600:0564f38e9bfe | 601:30f2c04571c2 |
---|---|
94 | 94 |
95 } else { | 95 } else { |
96 ods.put("running", true); | 96 ods.put("running", true); |
97 | 97 |
98 HashMap<String, HostMessage> nameTable = new HashMap<String, HostMessage>(); | 98 HashMap<String, HostMessage> nameTable = new HashMap<String, HostMessage>(); |
99 | 99 int cominghostCount = 0; |
100 if (conf.type == TopologyType.Tree) { | 100 if (conf.type == TopologyType.Tree) { |
101 int cominghostCount = 0; | |
102 ParentManager manager = new ParentManager(conf.hasChild); | 101 ParentManager manager = new ParentManager(conf.hasChild); |
103 ods.put("parentManager", manager); | 102 ods.put("parentManager", manager); |
104 ods.put("nameTable", nameTable); | 103 ods.put("nameTable", nameTable); |
105 ods.put("hostCount", cominghostCount); | 104 ods.put("hostCount", cominghostCount); |
106 new ComingServiceHosts(); | 105 new ComingServiceHosts(); |
107 new ReceiveDisconnectMessage(); | 106 new ReceiveDisconnectMessage(); |
107 } else if (conf.type == TopologyType.Star){ | |
108 ods.put("nameTable", nameTable); | |
109 ods.put("hostCount", cominghostCount); | |
110 new ComingStarHosts(); | |
108 } | 111 } |
109 } | 112 } |
110 | 113 |
111 ods.put("topology", new HashMap<String, LinkedList<HostMessage>>()); | 114 ods.put("topology", new HashMap<String, LinkedList<HostMessage>>()); |
112 ods.put("createdList", new LinkedList<String>()); | 115 ods.put("createdList", new LinkedList<String>()); |