Class: Kafkat::ClusterRestart::Subcommands::Help

Inherits:
Kafkat::Command::Base show all
Defined in:
lib/kafkat/command/cluster_restart.rb

Instance Attribute Summary

Attributes inherited from Kafkat::Command::Base

#config

Instance Method Summary collapse

Methods inherited from Kafkat::Command::Base

#admin, #initialize, #kafka_logs, register_as, usage, usages, #zookeeper

Methods included from Logging

#print_err

Methods included from Kafkat::CommandIO

#prompt_and_execute_assignments

Methods included from Formatting

#justify, #print_assignment, #print_assignment_header, #print_broker, #print_broker_header, #print_partition, #print_partition_header, #print_topic, #print_topic_header, #print_topic_name

Constructor Details

This class inherits a constructor from Kafkat::Command::Base

Instance Method Details

#runObject



29
30
31
32
33
34
35
36
37
# File 'lib/kafkat/command/cluster_restart.rb', line 29

def run
  puts 'cluster-restart help                Print Help and exit'
  puts 'cluster-restart reset               Clean up the restart state'
  puts 'cluster-restart start               Initialize the cluster-restart session for the cluster'
  puts 'cluster-restart next                Calculate the next broker to restart based on the current state'
  puts 'cluster-restart good <broker>       Mark this broker as successfully restarted'
  puts 'cluster-restart log                 Print the state of the brokers'
  puts 'cluster-restart restore <file>      Start a new session and restore the state defined in that file'
end