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