Class: LogStash::Util::WorkerThreadsDefaultPrinter

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/util/worker_threads_default_printer.rb

Instance Method Summary collapse

Constructor Details

#initialize(settings) ⇒ WorkerThreadsDefaultPrinter

Returns a new instance of WorkerThreadsDefaultPrinter.



8
9
10
# File 'lib/logstash/util/worker_threads_default_printer.rb', line 8

def initialize(settings)
  @setting = settings.fetch('filter-workers', 1)
end

Instance Method Details

#visit(collector) ⇒ Object



12
13
14
# File 'lib/logstash/util/worker_threads_default_printer.rb', line 12

def visit(collector)
  collector.push "Filter workers: #{@setting}"
end