Class: Riddle::Configuration::Searchd
- Defined in:
- lib/riddle/configuration/searchd.rb,
lib/riddle/0.9.9/configuration/searchd.rb
Constant Summary collapse
- NUMBER =
1.class
Instance Attribute Summary collapse
-
#mysql41 ⇒ Object
Returns the value of attribute mysql41.
-
#socket ⇒ Object
Returns the value of attribute socket.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#mysql41 ⇒ Object
Returns the value of attribute mysql41.
30 31 32 |
# File 'lib/riddle/configuration/searchd.rb', line 30 def mysql41 @mysql41 end |
#socket ⇒ Object
Returns the value of attribute socket.
30 31 32 |
# File 'lib/riddle/configuration/searchd.rb', line 30 def socket @socket end |
Class Method Details
.settings ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/riddle/configuration/searchd.rb', line 6 def self.settings [ :listen, :address, :port, :log, :query_log, :query_log_format, :read_timeout, :client_timeout, :max_children, :pid_file, :max_matches, :seamless_rotate, :preopen_indexes, :unlink_old, :attr_flush_period, :ondisk_dict_default, :max_packet_size, :mva_updates_pool, :crash_log_path, :max_filters, :max_filter_values, :listen_backlog, :read_buffer, :read_unhinted, :max_batch_queries, :subtree_docs_cache, :subtree_hits_cache, :workers, :dist_threads, :binlog_path, :binlog_flush, :binlog_max_log_size, :snippets_file_prefix, :collation_server, :collation_libc_locale, :mysql_version_string, :rt_flush_period, :thread_stack, :expansion_limit, :compat_sphinxql_magics, :watchdog, :prefork_rotation_throttle, :sphinxql_state, :ha_ping_interval, :ha_period_karma, :persistent_connections_limit, :rt_merge_iops, :rt_merge_maxiosize, :predicted_time_costs, :snippets_file_prefix, :shutdown_timeout, :ondisk_attrs_default, :query_log_min_msec, :agent_connect_timeout, :agent_query_timeout, :agent_retry_count, :agenty_retry_delay, :client_key ] end |
Instance Method Details
#render ⇒ Object
32 33 34 35 36 37 38 39 40 |
# File 'lib/riddle/configuration/searchd.rb', line 32 def render raise ConfigurationError unless valid? ( ["searchd", "{"] + settings_body + ["}", ""] ).join("\n") end |
#valid? ⇒ Boolean
42 43 44 |
# File 'lib/riddle/configuration/searchd.rb', line 42 def valid? !( @port.nil? || @pid_file.nil? ) end |