Class: Command::AmbariClusterComponentHostCommand Abstract
- Inherits:
-
AmbariClusterComponentCommand
- Object
- BasicCommand
- AmbariCommand
- AmbariClusterCommand
- AmbariClusterComponentCommand
- Command::AmbariClusterComponentHostCommand
- Defined in:
- lib/command/ambari_cluster_component_host_command.rb
Overview
This class is abstract.
Subclass and override BasicCommand#exec to implement
Class for all ambari command.
Direct Known Subclasses
AmbariInstallHostComponent, AmbariInstallHostComponents, AmbariServiceComponentAdd, AmbariServiceComponentDelete, AmbariServiceComponentDetach, AmbariStartHostComponent, AmbariStartHostComponents, AmbariStopHostComponent
Instance Attribute Summary collapse
-
#host_name ⇒ Object
The host name.
Attributes inherited from AmbariClusterComponentCommand
Attributes inherited from AmbariClusterCommand
Attributes inherited from BasicCommand
Instance Method Summary collapse
-
#initialize(cluster_name, component_name, host_name) ⇒ AmbariClusterComponentHostCommand
constructor
private
Default constructor.
Methods inherited from BasicCommand
Constructor Details
#initialize(cluster_name, component_name, host_name) ⇒ AmbariClusterComponentHostCommand (private)
Default constructor.
19 20 21 22 23 |
# File 'lib/command/ambari_cluster_component_host_command.rb', line 19 def initialize(cluster_name, component_name, host_name) super(cluster_name, component_name) @logger.info("Command::AmbariClusterComponentHostCommand initialize the parameters...") @host_name = host_name end |
Instance Attribute Details
#host_name ⇒ Object
The host name
14 15 16 |
# File 'lib/command/ambari_cluster_component_host_command.rb', line 14 def host_name @host_name end |