Class: Command::AmbariStopComponent

Inherits:
AmbariClusterComponentCommand show all
Defined in:
lib/command/ambari_stop_component.rb

Overview

Command used to stop a type of component.

Author:

  • tnoguer

Instance Attribute Summary

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 AmbariClusterComponentCommand

#initialize

Methods inherited from AmbariClusterCommand

#initialize

Methods inherited from AmbariCommand

#initialize

Methods inherited from BasicCommand

#initialize

Constructor Details

This class inherits a constructor from Command::AmbariClusterComponentCommand

Instance Method Details

#execObject

The execution of the command.

Author:

  • tnoguer



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

def exec()
  @receiver.stop_component(@cluster_name, @component_name)
end