Class: Droonga::Command::DroongaEngineWorker
- Inherits:
-
Object
- Object
- Droonga::Command::DroongaEngineWorker
- Includes:
- Loggable
- Defined in:
- lib/droonga/command/droonga_engine_worker.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DroongaEngineWorker
constructor
A new instance of DroongaEngineWorker.
- #run(command_line_arguments) ⇒ Object
Constructor Details
#initialize ⇒ DroongaEngineWorker
Returns a new instance of DroongaEngineWorker.
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/droonga/command/droonga_engine_worker.rb', line 38 def initialize @job_queue_socket_path = nil @contrtol_read_fd = nil @contrtol_write_fd = nil @pid_file_path = nil @label = nil @dataset = nil @database_path = nil @plugins = [] @internal_connection_lifetime = nil @worker_process_agent = nil end |
Class Method Details
.run(command_line_arguments) ⇒ Object
31 32 33 |
# File 'lib/droonga/command/droonga_engine_worker.rb', line 31 def run(command_line_arguments) new.run(command_line_arguments) end |
Instance Method Details
#run(command_line_arguments) ⇒ Object
51 52 53 54 55 56 57 58 59 60 |
# File 'lib/droonga/command/droonga_engine_worker.rb', line 51 def run(command_line_arguments) create_new_process_group parse_command_line_arguments!(command_line_arguments) PluginLoader.load_all write_pid_file do run_main_loop end end |