Method List
Search:
-
#add_datum Readorder::Results
-
#after Readorder::Command
-
#analyzer Readorder::Command
-
#bad_data_count Readorder::Analyzer
-
#before Readorder::Commands::Test
-
#before Readorder::Command
-
#bin_path Readorder::Paths
-
#close Readorder::Results
-
#collect Readorder::Datum
-
#collect_data Readorder::Analyzer
-
command_name Readorder::Command
-
#command_name Readorder::Command
-
commands Readorder::Command
-
#config_path Readorder::Paths
-
console Readorder::Log
-
console= Readorder::Log
-
console_layout Readorder::Log
-
create_table_sql Readorder::Results
-
#current_source Readorder::Filelist
-
#data_path Readorder::Paths
-
#drop_caches Readorder::Commands::Test
-
#dump_errors_to Readorder::Analyzer
-
#dump_to_dev_null Readorder::Commands::Test
-
#dump_valid_to Readorder::Analyzer
-
#each_error Readorder::Results
-
#each_line Readorder::Filelist
-
#each_valid Readorder::Results
-
#each_valid_by_field Readorder::Results
-
#each_valid_by_first_physical_block_number Readorder::Results
-
#each_valid_by_inode_number Readorder::Results
-
#error Readorder::Command
-
#error_count Readorder::Results
-
#error_reason Readorder::Datum
-
#filelist Readorder::Command
-
#filename Readorder::Datum
-
find Readorder::Command
-
#first_of Readorder::Commands::Test
-
#first_physical_block_number Readorder::Datum
-
#flush Readorder::Results
-
#flush_error Readorder::Results
-
#flush_valid Readorder::Results
-
#get_physical? Readorder::Command
-
#gets Readorder::Filelist
-
#good_data_count Readorder::Analyzer
-
#has_datum_for_filename? Readorder::Results
-
hash_keys Readorder::Datum
-
#home_dir Readorder::Paths
-
#home_dir= Readorder::Paths
-
#home_path Readorder::Paths
-
inherited Readorder::Command
-
init Readorder::Log
-
#initialize Readorder::Runner
-
#initialize Readorder::Analyzer
-
#initialize Readorder::Command
-
#initialize Readorder::Datum
-
#initialize Readorder::Results
-
#initialize Readorder::Filelist
-
#initialize_logging Readorder::Runner
-
#inode_number Readorder::Datum
-
is_linux? Readorder::Datum
-
layout Readorder::Log
-
level Readorder::Log
-
level= Readorder::Log
-
#lib_path Readorder::Paths
-
#log_path Readorder::Paths
-
#log_summary_report Readorder::Analyzer
-
#logger Readorder::Command
-
#logger Readorder::Analyzer
-
#logger Readorder::Datum
-
#logger Readorder::Runner
-
logger Readorder
-
#logger Readorder::Results
-
#options Readorder::Command
-
#options Readorder::Runner
-
#original_order Readorder::Datum
-
#output Readorder::Command
-
params_to_hash Main.create { author "Copyright 2009 (c) Jeremy Hinegardner" version ::Readorder::VERSION description <<-txt Readorder orders a list of files into a more efficient read order. Given a list of filenames, either on the command line or via stdin, output the filenames in an order that should increase the I/O throughput when the contents files are read from disc. txt run { help! } ## --- Modes -- ## Default mode is sort, which is when no mode is given mode( :sort ) { description <<-txt Given a list of filenames, either on the command line or via stdin, output the filenames in an order that should increase the I/O throughput when the contents files are read from disc. txt option( 'inode' ) { description "Only use inode order do not attempt physical block order" cast :boolean } mixin :option_log_level mixin :option_log_file mixin :argument_filelist mixin :option_output mixin :option_error_filelist mixin :option_batch_size run { Cli.run_command_with_params( 'sort', params ) } } mode( :analyze ) { description <<-txt Take the list of filenames and output an analysis of the volume of data in those files. txt mixin :option_log_level mixin :option_log_file mixin :argument_filelist mixin :option_output mixin :option_error_filelist mixin :option_batch_size option( 'data-csv' ) { description "Write the raw data collected to this csv file" argument :required validate { |f| File.directory?( File.dirname(File.expand_path( f ) ) ) } } run { Cli.run_command_with_params( 'analyze', params ) } } mode( :test ) { description <<-txt Give a list of filenames, either on the commandline or via stdin, take a random subsample of them and read all the contents of those files in different orders. 1) in initial given order 2) in inode order 3) in physical block order Output a report of the various times take to read the files. This command requires elevated priveleges to run and will spike the I/O of your machine. Run with care. txt option( :percentage ) { description "What random percentage of input files to select" argument :required default "10" validate { |p| pi = Float(p) (pi > 0) and (pi <= 100) } cast :float } mixin :option_log_level mixin :option_log_file mixin :option_output mixin :argument_filelist mixin :option_error_filelist mixin :option_batch_size run { Cli.run_command_with_params( 'test', params ) } } ## --- Mixins --- mixin :argument_filelist do argument('filelist') { description "The files containing filenames" arity '*' default [ $stdin ] required false } 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 default 'info' validate { |l| %w[ debug info warn error fatal off ].include?( l.downcase ) } end end mixin :option_log_file do option( 'log-file' ) do description "Log to this file instead of stderr" argument :required validate { |f| File.directory?( File.dirname(File.expand_path( f ) ) ) } end end mixin :option_output do option( 'output' ) do description "Where to write the output" argument :required validate { |f| File.directory?( File.dirname(File.expand_path( f ) ) ) } end end mixin :option_error_filelist do option('error-filelist') do description "Write all the files from the filelist that had errors to this file" argument :required validate { |f| File.directory?( File.dirname(File.expand_path( f ) ) ) } end end mixin :option_batch_size do option('batch-size' ) do description "The number of files to queue before writing them to the db for storage" argument :required default 10_000 cast :integer end end }
-
#physical_block_count Readorder::Datum
-
#report_results Readorder::Commands::Test
-
#results Readorder::Command
-
#results Readorder::Analyzer
-
#results_dbfile Readorder::Command
-
#root_dir Readorder::Paths
-
#root_path Readorder::Paths
-
#run Readorder::Command
-
#run Readorder::Runner
-
#run Readorder::Commands::Test
-
#run Readorder::Commands::Sort
-
#run Readorder::Commands::Analyze
-
run_command_with_params Main.create { author "Copyright 2009 (c) Jeremy Hinegardner" version ::Readorder::VERSION description <<-txt Readorder orders a list of files into a more efficient read order. Given a list of filenames, either on the command line or via stdin, output the filenames in an order that should increase the I/O throughput when the contents files are read from disc. txt run { help! } ## --- Modes -- ## Default mode is sort, which is when no mode is given mode( :sort ) { description <<-txt Given a list of filenames, either on the command line or via stdin, output the filenames in an order that should increase the I/O throughput when the contents files are read from disc. txt option( 'inode' ) { description "Only use inode order do not attempt physical block order" cast :boolean } mixin :option_log_level mixin :option_log_file mixin :argument_filelist mixin :option_output mixin :option_error_filelist mixin :option_batch_size run { Cli.run_command_with_params( 'sort', params ) } } mode( :analyze ) { description <<-txt Take the list of filenames and output an analysis of the volume of data in those files. txt mixin :option_log_level mixin :option_log_file mixin :argument_filelist mixin :option_output mixin :option_error_filelist mixin :option_batch_size option( 'data-csv' ) { description "Write the raw data collected to this csv file" argument :required validate { |f| File.directory?( File.dirname(File.expand_path( f ) ) ) } } run { Cli.run_command_with_params( 'analyze', params ) } } mode( :test ) { description <<-txt Give a list of filenames, either on the commandline or via stdin, take a random subsample of them and read all the contents of those files in different orders. 1) in initial given order 2) in inode order 3) in physical block order Output a report of the various times take to read the files. This command requires elevated priveleges to run and will spike the I/O of your machine. Run with care. txt option( :percentage ) { description "What random percentage of input files to select" argument :required default "10" validate { |p| pi = Float(p) (pi > 0) and (pi <= 100) } cast :float } mixin :option_log_level mixin :option_log_file mixin :option_output mixin :argument_filelist mixin :option_error_filelist mixin :option_batch_size run { Cli.run_command_with_params( 'test', params ) } } ## --- Mixins --- mixin :argument_filelist do argument('filelist') { description "The files containing filenames" arity '*' default [ $stdin ] required false } 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 default 'info' validate { |l| %w[ debug info warn error fatal off ].include?( l.downcase ) } end end mixin :option_log_file do option( 'log-file' ) do description "Log to this file instead of stderr" argument :required validate { |f| File.directory?( File.dirname(File.expand_path( f ) ) ) } end end mixin :option_output do option( 'output' ) do description "Where to write the output" argument :required validate { |f| File.directory?( File.dirname(File.expand_path( f ) ) ) } end end mixin :option_error_filelist do option('error-filelist') do description "Write all the files from the filelist that had errors to this file" argument :required validate { |f| File.directory?( File.dirname(File.expand_path( f ) ) ) } end end mixin :option_batch_size do option('batch-size' ) do description "The number of files to queue before writing them to the db for storage" argument :required default 10_000 cast :integer end end }
-
#run_test Readorder::Commands::Test
-
#sample_from Readorder::Commands::Test
-
#setup_signal_handling Readorder::Runner
-
#shutdown Readorder::Command
-
#size Readorder::Datum
-
#spec_path Readorder::Paths
-
#stat Readorder::Datum
-
#sub_path Readorder::Paths
-
#summary_report Readorder::Analyzer
-
#test_using_first_of Readorder::Commands::Test
-
#test_using_random_sample Readorder::Commands::Test
-
#test_using_sublist Readorder::Commands::Test
-
#tmp_path Readorder::Paths
-
#to_a Readorder::Version
-
#to_csv Readorder::Datum
-
#to_hash Readorder::Datum
-
#to_hash Readorder::Version
-
#to_s Readorder::Version
-
#valid? Readorder::Datum
-
#valid_count Readorder::Results