This closes #3505
This commit is contained in:
commit
7c5ef2796a
|
@ -4043,16 +4043,16 @@ public class ActiveMQServerControlImpl extends AbstractControl implements Active
|
||||||
Collection<TopologyMemberImpl> members = topology.getMembers();
|
Collection<TopologyMemberImpl> members = topology.getMembers();
|
||||||
for (TopologyMemberImpl member : members) {
|
for (TopologyMemberImpl member : members) {
|
||||||
|
|
||||||
JsonObjectBuilder obj = JsonLoader.createObjectBuilder();
|
|
||||||
TransportConfiguration live = member.getLive();
|
TransportConfiguration live = member.getLive();
|
||||||
if (live != null) {
|
if (live != null) {
|
||||||
|
JsonObjectBuilder obj = JsonLoader.createObjectBuilder();
|
||||||
obj.add("nodeID", member.getNodeId()).add("live", live.getParams().get("host") + ":" + live.getParams().get("port"));
|
obj.add("nodeID", member.getNodeId()).add("live", live.getParams().get("host") + ":" + live.getParams().get("port"));
|
||||||
TransportConfiguration backup = member.getBackup();
|
TransportConfiguration backup = member.getBackup();
|
||||||
if (backup != null) {
|
if (backup != null) {
|
||||||
obj.add("backup", backup.getParams().get("host") + ":" + backup.getParams().get("port"));
|
obj.add("backup", backup.getParams().get("host") + ":" + backup.getParams().get("port"));
|
||||||
}
|
}
|
||||||
|
brokers.add(obj);
|
||||||
}
|
}
|
||||||
brokers.add(obj);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue