Author: yusaku
Date: Fri Feb 22 07:58:43 2013
New Revision: 1448919
URL: http://svn.apache.org/r1448919
Log:
AMBARI-1460. Optimize query call for retrieving host information. (yusaku)
Modified:
incubator/ambari/trunk/CHANGES.txt
incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js
incubator/ambari/trunk/ambari-web/app/controllers/global/update_controller.js
Modified: incubator/ambari/trunk/CHANGES.txt
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1448919&r1=1448918&r2=1448919&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Feb 22 07:58:43 2013
@@ -45,6 +45,8 @@ Trunk (unreleased changes):
IMPROVEMENTS
+ AMBARI-1460. Optimize query call for retrieving host information. (yusaku)
+
AMBARI-1470. Refactor confirmation popups. (yusaku)
AMBARI-1414. Expose fine grained HDFS capacity metrics in API. (tbeerbower)
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js?rev=1448919&r1=1448918&r2=1448919&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/global/cluster_controller.js
Fri Feb 22 07:58:43 2013
@@ -294,7 +294,7 @@ App.ClusterController = Em.Controller.ex
}
var clusterUrl = this.getUrl('/data/clusters/cluster.json',
'?fields=Clusters');
- var hostsUrl = this.getUrl('/data/hosts/hosts.json',
'/hosts?fields=Hosts,host_components,metrics/cpu,metrics/disk,metrics/load,metrics/memory');
+ var hostsUrl = this.getUrl('/data/hosts/hosts.json',
'/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/cpu_count,Hosts/total_mem,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/os_arch,Hosts/os_type,Hosts/ip,host_components,metrics/disk,metrics/cpu,metrics/load,metrics/memory');
var usersUrl = App.testMode ? '/data/users/users.json' : App.apiPrefix +
'/users/?fields=*';
var racksUrl = "/data/racks/racks.json";
Modified:
incubator/ambari/trunk/ambari-web/app/controllers/global/update_controller.js
URL:
http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/global/update_controller.js?rev=1448919&r1=1448918&r2=1448919&view=diff
==============================================================================
---
incubator/ambari/trunk/ambari-web/app/controllers/global/update_controller.js
(original)
+++
incubator/ambari/trunk/ambari-web/app/controllers/global/update_controller.js
Fri Feb 22 07:58:43 2013
@@ -53,7 +53,7 @@ App.UpdateController = Em.Controller.ext
},
updateHost:function(){
- var hostsUrl = this.getUrl('/data/hosts/hosts.json',
'/hosts?fields=Hosts,host_components,metrics/cpu,metrics/disk,metrics/load,metrics/memory');
+ var hostsUrl = this.getUrl('/data/hosts/hosts.json',
'/hosts?fields=Hosts/host_name,Hosts/public_host_name,Hosts/cpu_count,Hosts/total_mem,Hosts/host_status,Hosts/last_heartbeat_time,Hosts/os_arch,Hosts/os_type,Hosts/ip,host_components,metrics/disk,metrics/cpu,metrics/load,metrics/memory');
App.HttpClient.get(hostsUrl, App.hostsMapper, {
complete:function (jqXHR, textStatus) {}
});