Class: LogStash::Inputs::Threadable

Inherits:
Base show all
Defined in:
lib/logstash/inputs/threadable.rb

Overview

This is the threadable class for logstash inputs. Use this class in your inputs if it can support multiple threads

Constant Summary

Constants included from Config::Mixin

Config::Mixin::PLUGIN_VERSION_0_9_0, Config::Mixin::PLUGIN_VERSION_1_0_0

Constants included from Util::SubstitutionVariables

Util::SubstitutionVariables::SUBSTITUTION_PLACEHOLDER_REGEX

Constants inherited from Plugin

Plugin::NL

Instance Attribute Summary

Attributes inherited from Base

#params, #threadable

Attributes included from Config::Mixin

#config, #original_params

Attributes inherited from Plugin

#execution_context, #params

Instance Method Summary collapse

Methods inherited from Base

#clone, #do_stop, #execution_context=, plugin_type, #register, #stop, #stop?, #tag

Methods included from Config::Mixin

#config_init, included

Methods included from Util::SubstitutionVariables

#deep_replace, #replace_placeholders

Methods included from Util::Loggable

included, #logger, #slow_logger

Methods inherited from Plugin

#close, #config_name, #debug_info, #do_close, #eql?, #hash, #id, #inspect, lookup, #metric, #metric=, #reloadable?, reloadable?, #to_s

Constructor Details

#initialize(params) ⇒ Threadable

Returns a new instance of Threadable.



13
14
15
16
# File 'lib/logstash/inputs/threadable.rb', line 13

def initialize(params)
  super
  @threadable = true
end