You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by at...@apache.org on 2014/01/20 12:00:19 UTC

git commit: AMBARI-4345 Storm: Install wizard. Update review page with hosts related to Storm UI Server, Logviewer Server, DRPC Server.(Denys Buzhor via atkach)

Updated Branches:
  refs/heads/trunk 9d92a192f -> 4ec6e63d8


AMBARI-4345 Storm: Install wizard. Update review page with hosts related to Storm UI Server, Logviewer Server, DRPC Server.(Denys Buzhor via atkach)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4ec6e63d
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4ec6e63d
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4ec6e63d

Branch: refs/heads/trunk
Commit: 4ec6e63d811d824ec07abf9ae8e7d16a90ab29fc
Parents: 9d92a19
Author: atkach <at...@hortonworks.com>
Authored: Mon Jan 20 13:00:15 2014 +0200
Committer: atkach <at...@hortonworks.com>
Committed: Mon Jan 20 13:00:15 2014 +0200

----------------------------------------------------------------------
 .../app/controllers/wizard/step8_controller.js    | 18 ++++++++++++++----
 ambari-web/app/data/review_configs.js             | 12 ++++++++++++
 2 files changed, 26 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4ec6e63d/ambari-web/app/controllers/wizard/step8_controller.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/controllers/wizard/step8_controller.js b/ambari-web/app/controllers/wizard/step8_controller.js
index 8bad6d4..2675707 100644
--- a/ambari-web/app/controllers/wizard/step8_controller.js
+++ b/ambari-web/app/controllers/wizard/step8_controller.js
@@ -918,7 +918,10 @@ App.WizardStep8Controller = Em.Controller.extend({
     stormObj.get('service_components').forEach(function(component) {
       switch (component.get('display_name')) {
         case 'Nimbus':
-          this.loadNimbusValue(component);
+        case 'Logviewer Server':
+        case 'Storm UI Server':
+        case 'DRPC Server':
+          this.loadMasterComponentHostValue(component);
           break;
         case 'SuperVisor':
           this.loadSuperVisorValue(component);
@@ -929,9 +932,16 @@ App.WizardStep8Controller = Em.Controller.extend({
     this.get('services').pushObject(stormObj);
   },
 
-  loadNimbusValue: function(component) {
-    var nimbusHost = this.get('content.masterComponentHosts').filterProperty('display_name', component.get('display_name'));
-    component.set('component_value', nimbusHost[0].hostName);
+  /**
+   * Load master component host value
+   * @method loadMasterComponentHostValue
+   * @param {Object} component - component object which value should be set
+   * @param {String} componentName - (optional) display_name of component
+   */
+  loadMasterComponentHostValue: function(component, componentName) {
+    var component_name = componentName || component.get('display_name');
+    var masterHost = this.get('content.masterComponentHosts').findProperty('display_name', component_name);
+    component.set('component_value', masterHost.hostName);
   },
 
   loadSuperVisorValue: function(component) {

http://git-wip-us.apache.org/repos/asf/ambari/blob/4ec6e63d/ambari-web/app/data/review_configs.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/data/review_configs.js b/ambari-web/app/data/review_configs.js
index c471e00..d70f5f5 100644
--- a/ambari-web/app/data/review_configs.js
+++ b/ambari-web/app/data/review_configs.js
@@ -232,6 +232,18 @@ module.exports = [
             component_value: ''
           }),
           Ember.Object.create({
+            display_name: 'Storm UI Server',
+            component_value: ''
+          }),
+          Ember.Object.create({
+            display_name: 'DRPC Server',
+            component_value: ''
+          }),
+          Ember.Object.create({
+            display_name: 'Logviewer Server',
+            component_value: ''
+          }),
+          Ember.Object.create({
             display_name: 'SuperVisor',
             component_value: ''
           })