Class: Command::AmbariClusterComponentHostCommand Abstract

Inherits:
AmbariClusterComponentCommand show all
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.

Author:

  • tnoguer

Instance Attribute Summary collapse

Attributes inherited from AmbariClusterComponentCommand

#component_name

Attributes inherited from AmbariClusterCommand

#cluster_name

Attributes inherited from BasicCommand

#logger, #receiver

Instance Method Summary collapse

Methods inherited from BasicCommand

#exec

Constructor Details

#initialize(cluster_name, component_name, host_name) ⇒ AmbariClusterComponentHostCommand (private)

Default constructor.

Author:

  • tnoguer



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_nameObject

The host name



14
15
16
# File 'lib/command/ambari_cluster_component_host_command.rb', line 14

def host_name
  @host_name
end