Class: LogStash::Plugins::ExecutionContextFactory
- Inherits:
-
Object
- Object
- LogStash::Plugins::ExecutionContextFactory
- Defined in:
- lib/logstash/plugins/plugin_factory.rb
Instance Method Summary collapse
- #create(id, klass_cfg_name) ⇒ Object
-
#initialize(agent, pipeline, dlq_writer) ⇒ ExecutionContextFactory
constructor
A new instance of ExecutionContextFactory.
Constructor Details
#initialize(agent, pipeline, dlq_writer) ⇒ ExecutionContextFactory
Returns a new instance of ExecutionContextFactory.
8 9 10 11 12 |
# File 'lib/logstash/plugins/plugin_factory.rb', line 8 def initialize(agent, pipeline, dlq_writer) @agent = agent @pipeline = pipeline @dlq_writer = dlq_writer end |
Instance Method Details
#create(id, klass_cfg_name) ⇒ Object
14 15 16 |
# File 'lib/logstash/plugins/plugin_factory.rb', line 14 def create(id, klass_cfg_name) ExecutionContext.new(@pipeline, @agent, id, klass_cfg_name, @dlq_writer) end |