You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2014/02/17 14:38:39 UTC
git commit: AMBARI-4699. Add ability to restart a component from
"Host Details" page. (Mikhail Bayuk via alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 1d38f471c -> d864d2a04
AMBARI-4699. Add ability to restart a component from "Host Details" page. (Mikhail Bayuk via alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d864d2a0
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d864d2a0
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d864d2a0
Branch: refs/heads/trunk
Commit: d864d2a048e86c78a646f37369fca6b8f1cc4d6b
Parents: 1d38f47
Author: Alex Antonenko <hi...@gmail.com>
Authored: Mon Feb 17 15:32:40 2014 +0200
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Mon Feb 17 15:38:04 2014 +0200
----------------------------------------------------------------------
ambari-web/app/app.js | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/d864d2a0/ambari-web/app/app.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/app.js b/ambari-web/app/app.js
index 4c1189a..34e979d 100644
--- a/ambari-web/app/app.js
+++ b/ambari-web/app/app.js
@@ -205,19 +205,22 @@ module.exports = Em.Application.create({
*/
components: Ember.Object.create({
reassignable: ['NAMENODE', 'SECONDARY_NAMENODE', 'JOBTRACKER', 'RESOURCEMANAGER'],
- restartable: ['APP_TIMELINE_SERVER'],
+ restartable: function() {
+ return this.get('masters');
+ }.property('masters'),
deletable: ['SUPERVISOR', 'HBASE_MASTER', 'DATANODE', 'TASKTRACKER', 'NODEMANAGER', 'HBASE_REGIONSERVER'],
rollinRestartAllowed: ["DATANODE", "TASKTRACKER", "NODEMANAGER", "HBASE_REGIONSERVER", "SUPERVISOR"],
decommissionAllowed: ["DATANODE", "TASKTRACKER", "NODEMANAGER", "HBASE_REGIONSERVER"],
addableToHost: ["DATANODE", "TASKTRACKER", "NODEMANAGER", "HBASE_REGIONSERVER", "HBASE_MASTER", "ZOOKEEPER_SERVER", "SUPERVISOR"],
slaves: function() {
return require('data/service_components').filter(function(component){
- return !component.isClient && !component.isMaster
- }).mapProperty('component_name').uniq().without("DASHBOARD");
+ return !component.isClient && !component.isMaster;
+ }).mapProperty('component_name').uniq().without("DASHBOARD").without("MYSQL_SERVER");
}.property().cacheable(),
masters: function() {
- return require('data/service_components').filterProperty('isMaster', true).mapProperty('component_name').uniq();
+ return require('data/service_components').filterProperty('isMaster', true)
+ .mapProperty('component_name').concat(['MYSQL_SERVER']).uniq();
}.property().cacheable(),
clients: function() {
return require('data/service_components').filterProperty('isClient', true).mapProperty('component_name').uniq();