wizard.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. var App = require('app');
  19. App.WizardController = Em.Controller.extend({
  20. isStepDisabled: null,
  21. init: function () {
  22. this.set('isStepDisabled', []);
  23. this.clusters = App.Cluster.find();
  24. this.isStepDisabled.pushObject(Ember.Object.create({
  25. step: 1,
  26. value: false
  27. }));
  28. for (var i = 2; i <= this.get('totalSteps'); i++) {
  29. this.isStepDisabled.pushObject(Ember.Object.create({
  30. step: i,
  31. value: true
  32. }));
  33. }
  34. // window.onbeforeunload = function () {
  35. // return "You have not saved your document yet. If you continue, your work will not be saved."
  36. //}
  37. },
  38. setStepsEnable: function () {
  39. for (var i = 1; i <= this.totalSteps; i++) {
  40. var step = this.get('isStepDisabled').findProperty('step', i);
  41. if (i <= this.get('currentStep')) {
  42. step.set('value', false);
  43. } else {
  44. step.set('value', true);
  45. }
  46. }
  47. }.observes('currentStep'),
  48. setLowerStepsDisable: function (stepNo) {
  49. for (var i = 1; i < stepNo; i++) {
  50. var step = this.get('isStepDisabled').findProperty('step', i);
  51. step.set('value', true);
  52. }
  53. },
  54. /**
  55. * Set current step to new value.
  56. * Method moved from App.router.setInstallerCurrentStep
  57. * @param currentStep
  58. * @param completed
  59. */
  60. currentStep: function () {
  61. return App.get('router').getWizardCurrentStep(this.get('name').substr(0, this.get('name').length - 10));
  62. }.property(),
  63. /**
  64. * Set current step to new value.
  65. * Method moved from App.router.setInstallerCurrentStep
  66. * @param currentStep
  67. * @param completed
  68. */
  69. setCurrentStep: function (currentStep, completed) {
  70. App.db.setWizardCurrentStep(this.get('name').substr(0, this.get('name').length - 10), currentStep, completed);
  71. this.set('currentStep', currentStep);
  72. },
  73. clusters: null,
  74. isStep1: function () {
  75. return this.get('currentStep') == 1;
  76. }.property('currentStep'),
  77. isStep2: function () {
  78. return this.get('currentStep') == 2;
  79. }.property('currentStep'),
  80. isStep3: function () {
  81. return this.get('currentStep') == 3;
  82. }.property('currentStep'),
  83. isStep4: function () {
  84. return this.get('currentStep') == 4;
  85. }.property('currentStep'),
  86. isStep5: function () {
  87. return this.get('currentStep') == 5;
  88. }.property('currentStep'),
  89. isStep6: function () {
  90. return this.get('currentStep') == 6;
  91. }.property('currentStep'),
  92. isStep7: function () {
  93. return this.get('currentStep') == 7;
  94. }.property('currentStep'),
  95. isStep8: function () {
  96. return this.get('currentStep') == 8;
  97. }.property('currentStep'),
  98. isStep9: function () {
  99. return this.get('currentStep') == 9;
  100. }.property('currentStep'),
  101. isStep10: function () {
  102. return this.get('currentStep') == 10;
  103. }.property('currentStep'),
  104. gotoStep: function (step) {
  105. if (this.get('isStepDisabled').findProperty('step', step).get('value') !== false) {
  106. return;
  107. }
  108. // if going back from Step 9 in Install Wizard, delete the checkpoint so that the user is not redirected
  109. // to Step 9
  110. if (this.get('content.controllerName') == 'installerController' && this.get('currentStep') === '9' && step < 9) {
  111. App.clusterStatus.setClusterStatus({
  112. clusterName: this.get('clusterName'),
  113. clusterState: 'CLUSTER_NOT_CREATED_1',
  114. wizardControllerName: 'installerController',
  115. localdb: App.db.data
  116. });
  117. }
  118. if ((this.get('currentStep') - step) > 1) {
  119. App.ModalPopup.show({
  120. header: Em.I18n.t('installer.navigation.warning.header'),
  121. onPrimary: function () {
  122. App.router.send('gotoStep' + step);
  123. this.hide();
  124. },
  125. body: "If you proceed to go back to Step " + step + ", you will lose any changes you have made beyond this step"
  126. });
  127. } else {
  128. App.router.send('gotoStep' + step);
  129. }
  130. },
  131. gotoStep1: function () {
  132. this.gotoStep(1);
  133. },
  134. gotoStep2: function () {
  135. this.gotoStep(2);
  136. },
  137. gotoStep3: function () {
  138. this.gotoStep(3);
  139. },
  140. gotoStep4: function () {
  141. this.gotoStep(4);
  142. },
  143. gotoStep5: function () {
  144. this.gotoStep(5);
  145. },
  146. gotoStep6: function () {
  147. this.gotoStep(6);
  148. },
  149. gotoStep7: function () {
  150. this.gotoStep(7);
  151. },
  152. gotoStep8: function () {
  153. this.gotoStep(8);
  154. },
  155. gotoStep9: function () {
  156. this.gotoStep(9);
  157. },
  158. gotoStep10: function () {
  159. this.gotoStep(10);
  160. },
  161. /**
  162. * Initialize host status info for step9
  163. */
  164. setInfoForStep9: function () {
  165. var hostInfo = App.db.getHosts();
  166. for (var index in hostInfo) {
  167. hostInfo[index].status = "pending";
  168. hostInfo[index].message = 'Waiting';
  169. hostInfo[index].logTasks = [];
  170. hostInfo[index].tasks = [];
  171. hostInfo[index].progress = '0';
  172. }
  173. App.db.setHosts(hostInfo);
  174. },
  175. /**
  176. * Remove all data for installOptions step
  177. */
  178. clearInstallOptions: function () {
  179. var installOptions = jQuery.extend({}, this.get('installOptionsTemplate'));
  180. this.set('content.installOptions', installOptions);
  181. this.save('installOptions');
  182. this.set('content.hosts', []);
  183. this.save('hosts');
  184. },
  185. toObject: function(object){
  186. var result = {};
  187. for(var i in object){
  188. if(object.hasOwnProperty(i)){
  189. result[i] = object[i];
  190. }
  191. }
  192. return result;
  193. },
  194. /**
  195. * save status of the cluster. This is called from step8 and step9 to persist install and start requestId
  196. * @param clusterStatus object with status, isCompleted, requestId, isInstallError and isStartError field.
  197. */
  198. saveClusterStatus: function (clusterStatus) {
  199. var oldStatus = this.toObject(this.get('content.cluster'));
  200. clusterStatus = jQuery.extend(oldStatus, clusterStatus);
  201. if (clusterStatus.requestId &&
  202. clusterStatus.oldRequestsId.indexOf(clusterStatus.requestId) === -1){
  203. clusterStatus.oldRequestsId.push(clusterStatus.requestId);
  204. }
  205. this.set('content.cluster', clusterStatus);
  206. this.save('cluster');
  207. },
  208. /**
  209. * Invoke installation of selected services to the server and saves the request id returned by the server.
  210. * @param isRetry
  211. */
  212. installServices: function (isRetry) {
  213. // clear requests since we are installing services
  214. // and we don't want to get tasks for previous install attempts
  215. this.set('content.cluster.oldRequestsId', []);
  216. this.set('content.cluster.requestId', null);
  217. var clusterName = this.get('content.cluster.name');
  218. var data;
  219. var name;
  220. switch (this.get('content.controllerName')) {
  221. case 'addHostController':
  222. if (isRetry) {
  223. name = 'wizard.install_services.add_host_controller.is_retry';
  224. }
  225. else {
  226. name = 'wizard.install_services.add_host_controller.not_is_retry';
  227. }
  228. data = '{"RequestInfo": {"context" :"'+ Em.I18n.t('requestInfo.installComponents') +'"}, "Body": {"HostRoles": {"state": "INSTALLED"}}}';
  229. break;
  230. case 'installerController':
  231. default:
  232. if (isRetry) {
  233. name = 'wizard.install_services.installer_controller.is_retry';
  234. data = '{"RequestInfo": {"context" :"'+ Em.I18n.t('requestInfo.installComponents') +'"}, "Body": {"HostRoles": {"state": "INSTALLED"}}}';
  235. }
  236. else {
  237. name = 'wizard.install_services.installer_controller.not_is_retry';
  238. data = '{"RequestInfo": {"context" :"'+ Em.I18n.t('requestInfo.installServices') +'"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}';
  239. }
  240. break;
  241. }
  242. App.ajax.send({
  243. name: name,
  244. sender: this,
  245. data: {
  246. data: data,
  247. cluster: clusterName
  248. },
  249. success: 'installServicesSuccessCallback',
  250. error: 'installServicesErrorCallback'
  251. });
  252. },
  253. installServicesSuccessCallback: function (jsonData) {
  254. var installStartTime = new Date().getTime();
  255. console.log("TRACE: In success function for the installService call");
  256. if (jsonData) {
  257. var requestId = jsonData.Requests.id;
  258. console.log('requestId is: ' + requestId);
  259. var clusterStatus = {
  260. status: 'PENDING',
  261. requestId: requestId,
  262. isInstallError: false,
  263. isCompleted: false,
  264. installStartTime: installStartTime
  265. };
  266. this.saveClusterStatus(clusterStatus);
  267. } else {
  268. console.log('ERROR: Error occurred in parsing JSON data');
  269. }
  270. },
  271. installServicesErrorCallback: function (request, ajaxOptions, error) {
  272. console.log("TRACE: In error function for the installService call");
  273. console.log("TRACE: error code status is: " + request.status);
  274. console.log('Error message is: ' + request.responseText);
  275. var clusterStatus = {
  276. status: 'PENDING',
  277. isInstallError: false,
  278. isCompleted: false
  279. };
  280. this.saveClusterStatus(clusterStatus);
  281. },
  282. bootstrapRequestId: null,
  283. /*
  284. Bootstrap selected hosts.
  285. */
  286. launchBootstrap: function (bootStrapData) {
  287. App.ajax.send({
  288. name: 'wizard.launch_bootstrap',
  289. sender: this,
  290. data: {
  291. bootStrapData: bootStrapData
  292. },
  293. success: 'launchBootstrapSuccessCallback',
  294. error: 'launchBootstrapErrorCallback'
  295. });
  296. return this.get('bootstrapRequestId');
  297. },
  298. launchBootstrapSuccessCallback: function (data) {
  299. console.log("TRACE: POST bootstrap succeeded");
  300. this.set('bootstrapRequestId', data.requestId);
  301. },
  302. launchBootstrapErrorCallback: function () {
  303. console.log("ERROR: POST bootstrap failed");
  304. alert('Bootstrap call failed. Please try again.');
  305. },
  306. /**
  307. * Load <code>content.<name></code> variable from localStorage, if wasn't loaded before.
  308. * If you specify <code>reload</code> to true - it will reload it.
  309. * @param name
  310. * @param reload
  311. * @return {Boolean}
  312. */
  313. load: function (name, reload) {
  314. if (this.get('content.' + name) && !reload) {
  315. return false;
  316. }
  317. var result = App.db['get' + name.capitalize()]();
  318. if (!result){
  319. result = this['get' + name.capitalize()]();
  320. App.db['set' + name.capitalize()](result);
  321. console.log(this.get('name') + ": created " + name, result);
  322. }
  323. this.set('content.' + name, result);
  324. console.log(this.get('name') + ": loaded " + name, result);
  325. },
  326. save: function(name){
  327. var value = this.toObject(this.get('content.' + name));
  328. App.db['set' + name.capitalize()](value);
  329. console.log(this.get('name') + ": saved " + name, value);
  330. },
  331. clear: function () {
  332. this.set('content', Ember.Object.create({
  333. 'controllerName': this.get('content.controllerName')
  334. }));
  335. this.set('currentStep', 0);
  336. this.clearStorageData();
  337. },
  338. clusterStatusTemplate : {
  339. name: "",
  340. status: "PENDING",
  341. isCompleted: false,
  342. requestId: null,
  343. installStartTime: null,
  344. installTime: null,
  345. isInstallError: false,
  346. isStartError: false,
  347. oldRequestsId: []
  348. },
  349. clearStorageData: function(){
  350. App.db.setService(undefined); //not to use this data at AddService page
  351. App.db.setHosts(undefined);
  352. App.db.setMasterComponentHosts(undefined);
  353. App.db.setSlaveComponentHosts(undefined);
  354. App.db.setCluster(undefined);
  355. App.db.setAllHostNames(undefined);
  356. App.db.setSlaveProperties(undefined);
  357. App.db.setInstallOptions(undefined);
  358. App.db.setAllHostNamesPattern(undefined);
  359. },
  360. installOptionsTemplate: {
  361. hostNames: "", //string
  362. manualInstall: false, //true, false
  363. useSsh: true, //bool
  364. isJavaHome : false, //bool
  365. javaHome: App.defaultJavaHome, //string
  366. localRepo: false, //true, false
  367. sshKey: "", //string
  368. bootRequestId: null //string
  369. },
  370. loadedServiceComponents: null,
  371. /**
  372. * Generate serviceComponents as pr the stack definition and save it to localdata
  373. * called form stepController step4WizardController
  374. */
  375. loadServiceComponents: function () {
  376. App.ajax.send({
  377. name: 'wizard.service_components',
  378. sender: this,
  379. data: {
  380. stackUrl: App.get('stackVersionURL')
  381. },
  382. success: 'loadServiceComponentsSuccessCallback',
  383. error: 'loadServiceComponentsErrorCallback'
  384. });
  385. return this.get('loadedServiceComponents');
  386. },
  387. loadServiceComponentsSuccessCallback: function (jsonData) {
  388. var displayOrderConfig = require('data/services');
  389. console.log("TRACE: getService ajax call -> In success function for the getServiceComponents call");
  390. console.log("TRACE: jsonData.services : " + jsonData.services);
  391. // Creating Model
  392. var Service = Ember.Object.extend({
  393. serviceName: null,
  394. displayName: null,
  395. isDisabled: true,
  396. isSelected: true,
  397. isInstalled: false,
  398. description: null,
  399. version: null
  400. });
  401. var data = [];
  402. // loop through all the service components
  403. for (var i = 0; i < displayOrderConfig.length; i++) {
  404. var entry = jsonData.services.findProperty("name", displayOrderConfig[i].serviceName);
  405. if (entry) {
  406. var myService = Service.create({
  407. serviceName: entry.name,
  408. displayName: displayOrderConfig[i].displayName,
  409. isDisabled: i === 0,
  410. isSelected: displayOrderConfig[i].isSelected,
  411. isInstalled: false,
  412. isHidden: displayOrderConfig[i].isHidden,
  413. description: entry.comment,
  414. version: entry.version
  415. });
  416. data.push(myService);
  417. }
  418. else {
  419. console.warn('Service not found - ', displayOrderConfig[i].serviceName);
  420. }
  421. }
  422. this.set('loadedServiceComponents', data);
  423. console.log('TRACE: service components: ' + JSON.stringify(data));
  424. },
  425. loadServiceComponentsErrorCallback: function (request, ajaxOptions, error) {
  426. console.log("TRACE: STep5 -> In error function for the getServiceComponents call");
  427. console.log("TRACE: STep5 -> error code status is: " + request.status);
  428. console.log('Step8: Error message is: ' + request.responseText);
  429. },
  430. loadServicesFromServer: function() {
  431. var services = App.db.getService();
  432. if (services) {
  433. return;
  434. }
  435. var apiService = this.loadServiceComponents();
  436. this.set('content.services', apiService);
  437. App.db.setService(apiService);
  438. },
  439. registerErrPopup: function (header, message) {
  440. App.ModalPopup.show({
  441. header: header,
  442. secondary: false,
  443. onPrimary: function () {
  444. this.hide();
  445. },
  446. bodyClass: Ember.View.extend({
  447. template: Ember.Handlebars.compile(['<p>{{view.message}}</p>'].join('\n')),
  448. message: message
  449. })
  450. });
  451. },
  452. /**
  453. * Save hosts that the user confirmed to proceed with from step 3
  454. * @param stepController App.WizardStep3Controller
  455. */
  456. saveConfirmedHosts: function (stepController) {
  457. var hostInfo = {};
  458. stepController.get('content.hosts').forEach(function (_host) {
  459. hostInfo[_host.name] = {
  460. name: _host.name,
  461. cpu: _host.cpu,
  462. memory: _host.memory,
  463. disk_info: _host.disk_info,
  464. bootStatus: _host.bootStatus,
  465. isInstalled: false
  466. };
  467. });
  468. console.log('wizardController:saveConfirmedHosts: save hosts ', hostInfo);
  469. App.db.setHosts(hostInfo);
  470. this.set('content.hosts', hostInfo);
  471. },
  472. /**
  473. * Save data after installation to main controller
  474. * @param stepController App.WizardStep9Controller
  475. */
  476. saveInstalledHosts: function (stepController) {
  477. var hosts = stepController.get('hosts');
  478. var hostInfo = App.db.getHosts();
  479. for (var index in hostInfo) {
  480. hostInfo[index].status = "pending";
  481. var host = hosts.findProperty('name', hostInfo[index].name);
  482. if (host) {
  483. hostInfo[index].status = host.status;
  484. hostInfo[index].message = host.message;
  485. hostInfo[index].progress = host.progress;
  486. }
  487. }
  488. this.set('content.hosts', hostInfo);
  489. this.save('hosts');
  490. console.log('wizardController:saveInstalledHosts: save hosts ', hostInfo);
  491. },
  492. /**
  493. * Save slaveHostComponents to main controller
  494. * @param stepController
  495. */
  496. saveSlaveComponentHosts: function (stepController) {
  497. var hosts = stepController.get('hosts');
  498. var headers = stepController.get('headers');
  499. var formattedHosts = Ember.Object.create();
  500. headers.forEach(function(header) {
  501. formattedHosts.set(header.get('name'), []);
  502. });
  503. hosts.forEach(function (host) {
  504. var checkboxes = host.get('checkboxes');
  505. headers.forEach(function(header) {
  506. var cb = checkboxes.findProperty('title', header.get('label'));
  507. if (cb.get('checked')) {
  508. formattedHosts.get(header.get('name')).push({
  509. hostName: host.hostName,
  510. group: 'Default',
  511. isInstalled: cb.get('isInstalled')
  512. });
  513. }
  514. });
  515. });
  516. var slaveComponentHosts = [];
  517. headers.forEach(function(header) {
  518. slaveComponentHosts.push({
  519. componentName: header.get('name'),
  520. displayName: header.get('label').replace(/\s/g, ''),
  521. hosts: formattedHosts.get(header.get('name'))
  522. });
  523. });
  524. App.db.setSlaveComponentHosts(slaveComponentHosts);
  525. console.log('wizardController.slaveComponentHosts: saved hosts', slaveComponentHosts);
  526. this.set('content.slaveComponentHosts', slaveComponentHosts);
  527. },
  528. /**
  529. * Return true if cluster data is loaded and false otherwise.
  530. * This is used for all wizard controllers except for installer wizard.
  531. */
  532. dataLoading: function(){
  533. var dfd = $.Deferred();
  534. this.connectOutlet('loading');
  535. if (App.router.get('clusterController.isLoaded')){
  536. dfd.resolve();
  537. } else{
  538. var interval = setInterval(function(){
  539. if (App.router.get('clusterController.isLoaded')){
  540. dfd.resolve();
  541. clearInterval(interval);
  542. }
  543. },50);
  544. }
  545. return dfd.promise();
  546. },
  547. /**
  548. * Save cluster status before going to deploy step
  549. * @param name cluster state. Unique for every wizard
  550. */
  551. saveClusterState: function(name){
  552. App.clusterStatus.setClusterStatus({
  553. clusterName: this.get('content.cluster.name'),
  554. clusterState: name,
  555. wizardControllerName: this.get('content.controllerName'),
  556. localdb: App.db.data
  557. });
  558. },
  559. /**
  560. * load advanced configs from server
  561. */
  562. loadAdvancedConfigs: function () {
  563. var configs = (App.db.getAdvancedServiceConfig()) ? App.db.getAdvancedServiceConfig() : [];
  564. this.get('content.services').filterProperty('isSelected', true).mapProperty('serviceName').forEach(function (_serviceName) {
  565. var serviceComponents = App.config.loadAdvancedConfig(_serviceName);
  566. if(serviceComponents){
  567. configs = configs.concat(serviceComponents);
  568. }
  569. }, this);
  570. this.set('content.advancedServiceConfig', configs);
  571. App.db.setAdvancedServiceConfig(configs);
  572. },
  573. /**
  574. * Load serviceConfigProperties to model
  575. */
  576. loadServiceConfigProperties: function () {
  577. var serviceConfigProperties = App.db.getServiceConfigProperties();
  578. this.set('content.serviceConfigProperties', serviceConfigProperties);
  579. console.log("AddHostController.loadServiceConfigProperties: loaded config ", serviceConfigProperties);
  580. },
  581. /**
  582. * Save config properties
  583. * @param stepController Step7WizardController
  584. */
  585. saveServiceConfigProperties: function (stepController) {
  586. var serviceConfigProperties = [];
  587. stepController.get('stepConfigs').forEach(function (_content) {
  588. _content.get('configs').forEach(function (_configProperties) {
  589. var displayType = _configProperties.get('displayType');
  590. if (displayType === 'directories' || displayType === 'directory') {
  591. var value = _configProperties.get('value').trim().split(/\s+/g).join(',');
  592. _configProperties.set('value', value);
  593. }
  594. var overrides = _configProperties.get('overrides');
  595. var overridesArray = [];
  596. if(overrides!=null){
  597. overrides.forEach(function(override){
  598. var overrideEntry = {
  599. value: override.get('value'),
  600. hosts: []
  601. };
  602. override.get('selectedHostOptions').forEach(function(host){
  603. overrideEntry.hosts.push(host);
  604. });
  605. overridesArray.push(overrideEntry);
  606. });
  607. }
  608. overridesArray = (overridesArray.length) ? overridesArray : null;
  609. var configProperty = {
  610. id: _configProperties.get('id'),
  611. name: _configProperties.get('name'),
  612. value: _configProperties.get('value'),
  613. defaultValue: _configProperties.get('defaultValue'),
  614. serviceName: _configProperties.get('serviceName'),
  615. domain: _configProperties.get('domain'),
  616. filename: _configProperties.get('filename'),
  617. overrides: overridesArray
  618. };
  619. serviceConfigProperties.push(configProperty);
  620. }, this);
  621. }, this);
  622. App.db.setServiceConfigProperties(serviceConfigProperties);
  623. this.set('content.serviceConfigProperties', serviceConfigProperties);
  624. }
  625. })