Method List
Search:
-
#after TyrantManager::Command
-
#archive_files_with_method TyrantManager::Commands::ArchiveUlogs
-
basedir TyrantManager
-
#before TyrantManager::Command
-
#bin_path TyrantManager::Paths
-
command_name TyrantManager::Commands::ArchiveUlogs
-
command_name TyrantManager::Command
-
command_name TyrantManager::Commands::ReplicationStatus
-
command_name TyrantManager::Commands::CreateInstance
-
#command_name TyrantManager::Command
-
command_name TyrantManager::Commands::ProcessStatus
-
#config_file TyrantManager::TyrantInstance
-
#config_file TyrantManager
-
config_file_basename TyrantManager
-
#configuration TyrantManager
-
#configuration TyrantManager::TyrantInstance
-
#connection TyrantManager::TyrantInstance
-
#connection_string TyrantManager::TyrantInstance
-
console TyrantManager::Log
-
console= TyrantManager::Log
-
console_layout TyrantManager::Log
-
cwd_default_directory TyrantManager
-
#data_dir TyrantManager::TyrantInstance
-
#data_path TyrantManager::Paths
-
#db_file TyrantManager::TyrantInstance
-
default_directory TyrantManager
-
default_instances_dir TyrantManager
-
default_level TyrantManager::Log
-
default_or_home_directory TyrantManager
-
#determine_master_slave_mappings TyrantManager::Commands::ArchiveUlogs
-
#each_instance TyrantManager
-
env_default_directory TyrantManager
-
#error TyrantManager::Command
-
find TyrantManager::Command
-
#home_dir TyrantManager::TyrantInstance
-
#home_dir TyrantManager::Paths
-
#home_dir= TyrantManager::Paths
-
#home_path TyrantManager::Paths
-
#index_types TyrantManager::TyrantInstance
-
inherited TyrantManager::Command
-
init TyrantManager::Log
-
#initialize TyrantManager::Command
-
#initialize TyrantManager::Runner
-
#initialize TyrantManager
-
#initialize TyrantManager::TyrantInstance
-
#install_dir TyrantManager::Paths
-
#install_path TyrantManager::Paths
-
#instances TyrantManager
-
#instances_path TyrantManager::Paths
-
#ip_of TyrantManager::Util
-
#is_master_master? TyrantManager::TyrantInstance
-
#is_slave? TyrantManager::TyrantInstance
-
is_tyrant_root? TyrantManager
-
layout TyrantManager::Log
-
level TyrantManager::Log
-
level= TyrantManager::Log
-
#lib_path TyrantManager::Paths
-
list TyrantManager::Command
-
localstate_default_directory TyrantManager
-
#log_file TyrantManager::TyrantInstance
-
#log_path TyrantManager::Paths
-
logger TyrantManager
-
logger TyrantManager::Log
-
logger TyrantManager::TyrantInstance
-
#logger TyrantManager::Runner
-
#logger TyrantManager::Command
-
#logger TyrantManager
-
#logger TyrantManager::TyrantInstance
-
#lua_extension_file TyrantManager::TyrantInstance
-
#manager TyrantManager::Command
-
#manager TyrantManager::TyrantInstance
-
#manager TyrantManager::Runner
-
#master_connection TyrantManager::TyrantInstance
-
#name TyrantManager::TyrantInstance
-
#options TyrantManager::Command
-
#options TyrantManager::Runner
-
params_to_hash Main.create { author "Copyright (c) 2009-2011 Jeremy Hinegardner. All rights reserved" version ::TyrantManager::VERSION description <<-txt The command line tool for managing tyrant instances. Run 'tyrantmanager help modename' for more information txt run { help! } mode( :setup ) { description "Setup an tyrant manager location" argument( :home ) { description "The home directory of the tyrant manager" required default ::TyrantManager.default_or_home_directory } run { TyrantManager::Log.init TyrantManager.setup( params['home'].value ) } } mode( 'create-instance' ) { description <<-txt Create a new tyrant instance in the specified directory txt argument( 'instance-home' ) do description <<-txt The home directory of the tyrant instance. If this is a full path it will be used. If it is a relative path, it will be relative to the manager's 'instances' configuration parameter txt end mixin :option_home mixin :option_log_level run { ::TyrantManager::Cli.run_command_with_params( "create-instance", params ) } } mode( 'start' ) { description "Start all the tyrants listed" mixin :option_home mixin :option_log_level mixin :argument_instances option( 'dry-run' ) { description "Do not start, just show the commands" default false } run { ::TyrantManager::Cli.run_command_with_params( 'start', params ) } } mode( 'stop' ) { description "Stop all the tyrants listed" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'stop', params ) } } mode('replication-status') { description "Describe the replication status of those servers using replication" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'replication-status', params ) } } mode('process-status') { description "Check the running status of all the tyrants listed" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'process-status', params ) } } mode( 'stats' ) { description "Dump the database statistics of each of the tyrants listed" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'stats', params ) } } mode('list') { description "list the instances and their home directories" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'list', params ) } } mode( 'archive-ulogs' ) { description "Archive the ulog files that are no longer necessary for replication" mixin :option_home mixin :option_log_level mixin :argument_instances option( 'archive-method' ) { description "The method of archiving, compress, or delete. Choosing 'delete' will also delete previously 'compressed' ulog files." argument :required validate { |m| %w[ compress delete ].include?( m.downcase ) } default "compress" } option( 'dry-run' ) { description "Do not archive, just show the commands" default false } option( 'force' ) { description "Force a record through the master to the slave so the replication timestamps are updated." default false cast :boolean } option('force-key') { description "When used with --force, this is the key that is forced from the master to the slaves. The value iinserted at the key is the current timestamp in the form #{Time.now.strftime('%Y-%m-%d %H:%M:%S')}" argument :required default "__tyrant_manager.force_replication_at" cast :string } option( 'slaves' ) { description "Comma separated list of slave instances connection strings host:port,host:port,..." argument :required cast :list_of_string } run { ::TyrantManager::Cli.run_command_with_params( 'archive-ulogs', params ) } } #--- Mixins --- mixin :option_home do option( :home ) do description "The home directory of the tyrant manager" argument :required validate { |v| ::File.directory?( v ) } default ::TyrantManager.default_or_home_directory end end mixin :option_log_level do option('log-level') do description "The verbosity of logging, one of [ #{::Logging::LNAMES.map {|l| l.downcase}.join(", ")} ]" argument :required validate { |l| %w[ debug info warn error fatal off ].include?( l.downcase ) } end end mixin :argument_instances do argument('instances') do description "A comman separated list of instance names the tyrant manager knows about" argument :required cast :list default 'all' end end }
-
#pid TyrantManager::TyrantInstance
-
#pid_file TyrantManager::TyrantInstance
-
#potential_ulog_archive_files TyrantManager::Commands::ArchiveUlogs
-
#remove_newer_than TyrantManager::Commands::ArchiveUlogs
-
#replication_timestamp_file TyrantManager::TyrantInstance
-
resume TyrantManager::Log
-
#run TyrantManager::Commands::List
-
#run TyrantManager::Command
-
#run TyrantManager::Commands::CreateInstance
-
#run TyrantManager::Runner
-
#run TyrantManager::Commands::ArchiveUlogs
-
#run TyrantManager::Commands::Start
-
#run TyrantManager::Commands::Stop
-
#run TyrantManager::Commands::Stats
-
#run TyrantManager::Commands::ProcessStatus
-
#run TyrantManager::Commands::ReplicationStatus
-
run_command_with_params Main.create { author "Copyright (c) 2009-2011 Jeremy Hinegardner. All rights reserved" version ::TyrantManager::VERSION description <<-txt The command line tool for managing tyrant instances. Run 'tyrantmanager help modename' for more information txt run { help! } mode( :setup ) { description "Setup an tyrant manager location" argument( :home ) { description "The home directory of the tyrant manager" required default ::TyrantManager.default_or_home_directory } run { TyrantManager::Log.init TyrantManager.setup( params['home'].value ) } } mode( 'create-instance' ) { description <<-txt Create a new tyrant instance in the specified directory txt argument( 'instance-home' ) do description <<-txt The home directory of the tyrant instance. If this is a full path it will be used. If it is a relative path, it will be relative to the manager's 'instances' configuration parameter txt end mixin :option_home mixin :option_log_level run { ::TyrantManager::Cli.run_command_with_params( "create-instance", params ) } } mode( 'start' ) { description "Start all the tyrants listed" mixin :option_home mixin :option_log_level mixin :argument_instances option( 'dry-run' ) { description "Do not start, just show the commands" default false } run { ::TyrantManager::Cli.run_command_with_params( 'start', params ) } } mode( 'stop' ) { description "Stop all the tyrants listed" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'stop', params ) } } mode('replication-status') { description "Describe the replication status of those servers using replication" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'replication-status', params ) } } mode('process-status') { description "Check the running status of all the tyrants listed" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'process-status', params ) } } mode( 'stats' ) { description "Dump the database statistics of each of the tyrants listed" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'stats', params ) } } mode('list') { description "list the instances and their home directories" mixin :option_home mixin :option_log_level mixin :argument_instances run { ::TyrantManager::Cli.run_command_with_params( 'list', params ) } } mode( 'archive-ulogs' ) { description "Archive the ulog files that are no longer necessary for replication" mixin :option_home mixin :option_log_level mixin :argument_instances option( 'archive-method' ) { description "The method of archiving, compress, or delete. Choosing 'delete' will also delete previously 'compressed' ulog files." argument :required validate { |m| %w[ compress delete ].include?( m.downcase ) } default "compress" } option( 'dry-run' ) { description "Do not archive, just show the commands" default false } option( 'force' ) { description "Force a record through the master to the slave so the replication timestamps are updated." default false cast :boolean } option('force-key') { description "When used with --force, this is the key that is forced from the master to the slaves. The value iinserted at the key is the current timestamp in the form #{Time.now.strftime('%Y-%m-%d %H:%M:%S')}" argument :required default "__tyrant_manager.force_replication_at" cast :string } option( 'slaves' ) { description "Comma separated list of slave instances connection strings host:port,host:port,..." argument :required cast :list_of_string } run { ::TyrantManager::Cli.run_command_with_params( 'archive-ulogs', params ) } } #--- Mixins --- mixin :option_home do option( :home ) do description "The home directory of the tyrant manager" argument :required validate { |v| ::File.directory?( v ) } default ::TyrantManager.default_or_home_directory end end mixin :option_log_level do option('log-level') do description "The verbosity of logging, one of [ #{::Logging::LNAMES.map {|l| l.downcase}.join(", ")} ]" argument :required validate { |l| %w[ debug info warn error fatal off ].include?( l.downcase ) } end end mixin :argument_instances do argument('instances') do description "A comman separated list of instance names the tyrant manager knows about" argument :required cast :list default 'all' end end }
-
#runner_for TyrantManager
-
#running? TyrantManager::TyrantInstance
-
setup TyrantManager
-
setup TyrantManager::TyrantInstance
-
silent TyrantManager::Log
-
silent! TyrantManager::Log
-
#spec_path TyrantManager::Paths
-
#start TyrantManager::TyrantInstance
-
#start_command TyrantManager::TyrantInstance
-
#stat TyrantManager::TyrantInstance
-
#stop TyrantManager::TyrantInstance
-
#sub_path TyrantManager::Paths
-
#tmp_path TyrantManager::Paths
-
#to_a TyrantManager::Version
-
#to_hash TyrantManager::Version
-
#to_s TyrantManager::Version
-
#trim_potential_removals TyrantManager::Commands::ArchiveUlogs
-
#ulog_dir TyrantManager::TyrantInstance
-
#ulog_files TyrantManager::TyrantInstance