Class: LogStash::OutputDelegatorStrategies::Shared
- Inherits:
-
Object
- Object
- LogStash::OutputDelegatorStrategies::Shared
- Defined in:
- lib/logstash/output_delegator_strategies/shared.rb
Instance Method Summary collapse
- #do_close ⇒ Object
-
#initialize(logger, klass, metric, plugin_args) ⇒ Shared
constructor
A new instance of Shared.
- #multi_receive(events) ⇒ Object
- #register ⇒ Object
Constructor Details
#initialize(logger, klass, metric, plugin_args) ⇒ Shared
Returns a new instance of Shared.
2 3 4 5 |
# File 'lib/logstash/output_delegator_strategies/shared.rb', line 2 def initialize(logger, klass, metric, plugin_args) @output = klass.new(plugin_args) @output.metric = metric end |
Instance Method Details
#do_close ⇒ Object
15 16 17 |
# File 'lib/logstash/output_delegator_strategies/shared.rb', line 15 def do_close @output.do_close end |
#multi_receive(events) ⇒ Object
11 12 13 |
# File 'lib/logstash/output_delegator_strategies/shared.rb', line 11 def multi_receive(events) @output.multi_receive(events) end |
#register ⇒ Object
7 8 9 |
# File 'lib/logstash/output_delegator_strategies/shared.rb', line 7 def register @output.register end |