Class: Command::AmbariClusterServiceCommand Abstract
- Inherits:
-
AmbariClusterCommand
- Object
- BasicCommand
- AmbariCommand
- AmbariClusterCommand
- Command::AmbariClusterServiceCommand
- Defined in:
- lib/command/ambari_cluster_service_command.rb
Overview
This class is abstract.
Subclass and override BasicCommand#exec to implement
Class for all ambari command.
Direct Known Subclasses
AmbariClusterServiceHostCommand, AmbariInstallServiceComponents, AmbariServiceAdd, AmbariServiceComponentInfo, AmbariServiceDelete, AmbariServiceInfo, AmbariStartServiceComponents, AmbariStopServiceComponents
Instance Attribute Summary collapse
-
#service_name ⇒ Object
The cluster name.
Attributes inherited from AmbariClusterCommand
Attributes inherited from BasicCommand
Instance Method Summary collapse
-
#initialize(cluster_name, service_name) ⇒ AmbariClusterServiceCommand
constructor
private
Default constructor.
Methods inherited from BasicCommand
Constructor Details
#initialize(cluster_name, service_name) ⇒ AmbariClusterServiceCommand (private)
Default constructor.
19 20 21 22 23 |
# File 'lib/command/ambari_cluster_service_command.rb', line 19 def initialize(cluster_name, service_name) super(cluster_name) @logger.info("Command::AmbariClusterServiceCommand initialize the parameters...") @service_name = service_name end |
Instance Attribute Details
#service_name ⇒ Object
The cluster name
14 15 16 |
# File 'lib/command/ambari_cluster_service_command.rb', line 14 def service_name @service_name end |