Class: Command::AmbariServiceComponentInfo
- Inherits:
-
AmbariClusterServiceCommand
- Object
- BasicCommand
- AmbariCommand
- AmbariClusterCommand
- AmbariClusterServiceCommand
- Command::AmbariServiceComponentInfo
- Defined in:
- lib/command/ambari_service_component_info.rb
Overview
# Command used to get information on a cluster’s ambari service.
Instance Attribute Summary collapse
-
#cluster_name ⇒ Object
Returns the value of attribute cluster_name.
-
#component ⇒ Object
Returns the value of attribute component.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
Attributes inherited from AmbariClusterServiceCommand
Attributes inherited from BasicCommand
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize(service_name, cluster_name, component) ⇒ Hash
constructor
The execution of the command.
Constructor Details
#initialize(service_name, cluster_name, component) ⇒ Hash
The execution of the command.
19 20 21 22 23 |
# File 'lib/command/ambari_service_component_info.rb', line 19 def initialize (service_name,cluster_name ,component) super(cluster_name,service_name) @cluster_name= cluster_name @component= component end |
Instance Attribute Details
#cluster_name ⇒ Object
Returns the value of attribute cluster_name.
13 14 15 |
# File 'lib/command/ambari_service_component_info.rb', line 13 def cluster_name @cluster_name end |
#component ⇒ Object
Returns the value of attribute component.
14 15 16 |
# File 'lib/command/ambari_service_component_info.rb', line 14 def component @component end |
#hostname ⇒ Object
Returns the value of attribute hostname.
12 13 14 |
# File 'lib/command/ambari_service_component_info.rb', line 12 def hostname @hostname end |
Instance Method Details
#exec ⇒ Object
24 25 26 |
# File 'lib/command/ambari_service_component_info.rb', line 24 def exec() return receiver.show_service_components(@cluster_name, @service_name ,@component) end |