in ambari-web/app/controllers/wizard/step9_controller.js [253:337]
displayMessage: function (task) {
var role = App.format.role(task.role);
console.log("In display message with task command value: " + task.command);
switch (task.command) {
case 'INSTALL':
switch (task.status) {
case 'PENDING':
return Em.I18n.t('installer.step9.serviceStatus.install.pending') + role;
case 'QUEUED' :
return Em.I18n.t('installer.step9.serviceStatus.install.queued') + role;
case 'IN_PROGRESS':
return Em.I18n.t('installer.step9.serviceStatus.install.inProgress') + role;
case 'COMPLETED' :
return Em.I18n.t('installer.step9.serviceStatus.install.completed') + role;
case 'FAILED':
return Em.I18n.t('installer.step9.serviceStatus.install.failed') + role;
}
case 'UNINSTALL':
switch (task.status) {
case 'PENDING':
return Em.I18n.t('installer.step9.serviceStatus.uninstall.pending') + role;
case 'QUEUED' :
return Em.I18n.t('installer.step9.serviceStatus.uninstall.queued') + role;
case 'IN_PROGRESS':
return Em.I18n.t('installer.step9.serviceStatus.uninstall.inProgress') + role;
case 'COMPLETED' :
return Em.I18n.t('installer.step9.serviceStatus.uninstall.completed') + role;
case 'FAILED':
return Em.I18n.t('installer.step9.serviceStatus.uninstall.failed') + role;
}
case 'START' :
switch (task.status) {
case 'PENDING':
return Em.I18n.t('installer.step9.serviceStatus.start.pending') + role;
case 'QUEUED' :
return Em.I18n.t('installer.step9.serviceStatus.start.queued') + role;
case 'IN_PROGRESS':
return Em.I18n.t('installer.step9.serviceStatus.start.inProgress') + role;
case 'COMPLETED' :
return role + Em.I18n.t('installer.step9.serviceStatus.start.completed');
case 'FAILED':
return role + Em.I18n.t('installer.step9.serviceStatus.start.failed');
}
case 'STOP' :
switch (task.status) {
case 'PENDING':
return Em.I18n.t('installer.step9.serviceStatus.stop.pending') + role;
case 'QUEUED' :
return Em.I18n.t('installer.step9.serviceStatus.stop.queued') + role;
case 'IN_PROGRESS':
return Em.I18n.t('installer.step9.serviceStatus.stop.inProgress') + role;
case 'COMPLETED' :
return role + Em.I18n.t('installer.step9.serviceStatus.stop.completed');
case 'FAILED':
return role + Em.I18n.t('installer.step9.serviceStatus.stop.failed');
}
case 'EXECUTE' :
switch (task.status) {
case 'PENDING':
return Em.I18n.t('installer.step9.serviceStatus.execute.pending') + role;
case 'QUEUED' :
return Em.I18n.t('installer.step9.serviceStatus.execute.queued') + role;
case 'IN_PROGRESS':
return Em.I18n.t('installer.step9.serviceStatus.execute.inProgress') + role;
case 'COMPLETED' :
return role + Em.I18n.t('installer.step9.serviceStatus.execute.completed');
case 'FAILED':
return role + Em.I18n.t('installer.step9.serviceStatus.execute.failed');
}
case 'ABORT' :
switch (task.status) {
case 'PENDING':
return Em.I18n.t('installer.step9.serviceStatus.abort.pending') + role;
case 'QUEUED' :
return Em.I18n.t('installer.step9.serviceStatus.abort.queued') + role;
case 'IN_PROGRESS':
return Em.I18n.t('installer.step9.serviceStatus.abort.inProgress') + role;
case 'COMPLETED' :
return role + Em.I18n.t('installer.step9.serviceStatus.abort.completed');
case 'FAILED':
return role + Em.I18n.t('installer.step9.serviceStatus.abort.failed');
}
}
return '';
},