add AccessURLs to clusters
Project: http://git-wip-us.apache.org/repos/asf/stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/a0921a85 Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/a0921a85 Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/a0921a85 Branch: refs/heads/master Commit: a0921a859acfc035613e66a6ec3a08b400f59d5b Parents: 65078b8 Author: Dakshika Jayathilaka <[email protected]> Authored: Wed Jan 28 05:20:40 2015 +0530 Committer: Dakshika Jayathilaka <[email protected]> Committed: Wed Jan 28 18:10:57 2015 +0530 ---------------------------------------------------------------------- .../theme0/js/custom/applications_topology.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/stratos/blob/a0921a85/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js index 10cce1f..d73c05a 100644 --- a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js +++ b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications_topology.js @@ -32,9 +32,16 @@ function genTree(data){ hostNames = items[prop].hostNames.toString(), serviceName = items[prop].serviceName, status = items[prop].status; + + if(items[prop].accessUrls){ + accessUrls = items[prop].accessUrls.toString(); + }else{ + accessUrls = ''; + } var type = 'clusters'; rawout.push({"name": cur_name, "parent": parent, "type": type, "status": status, - "alias":alias, "hostNames": hostNames, "serviceName": serviceName + "alias":alias, "hostNames": hostNames, "serviceName": serviceName, + "accessUrls":accessUrls }); clustermembers(items[prop].member, collector, cur_name) } @@ -166,10 +173,17 @@ function update(source) { div.transition() .duration(200) .style("opacity", .9); + console.log(d) if (d.type == 'clusters') { + if(d.accessUrls != ''){ + var accessURLHTML = "<strong>Access URLs: </strong>" + d.accessUrls + "<br/>" ; + }else{ + var accessURLHTML =''; + } div.html( "<strong>Cluster Id: </strong>" + d.name + "<br/>" + "<strong>Cluster Alias: </strong>" + d.alias + "<br/>" + + accessURLHTML + "<strong>HostNames: </strong>" + d.hostNames + "<br/>" + "<strong>Service Name: </strong>" + d.serviceName + "<br/>" + "<strong>Status: </strong>" + d.status
