Class: Groonga::QueryLog::ServerVerifier
- Inherits:
-
Object
- Object
- Groonga::QueryLog::ServerVerifier
- Defined in:
- lib/groonga/query-log/server-verifier.rb
Defined Under Namespace
Classes: GroongaOptions, Options
Instance Method Summary collapse
-
#initialize(options) ⇒ ServerVerifier
constructor
A new instance of ServerVerifier.
- #verify(input) ⇒ Object
Constructor Details
#initialize(options) ⇒ ServerVerifier
Returns a new instance of ServerVerifier.
30 31 32 33 34 |
# File 'lib/groonga/query-log/server-verifier.rb', line 30 def initialize() @options = @queue = SizedQueue.new(@options.request_queue_size) @different_results = Queue.new end |
Instance Method Details
#verify(input) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/groonga/query-log/server-verifier.rb', line 36 def verify(input) producer = run_producer(input) consumers = run_consumers reporter = run_reporter producer.join consumers.each(&:join) @different_results.push(nil) reporter.join end |