Class: LogStash::OutputDelegatorStrategies::Shared

Inherits:
Object
  • Object
show all
Defined in:
lib/logstash/output_delegator_strategies/shared.rb

Instance Method Summary collapse

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_closeObject



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

#registerObject



7
8
9
# File 'lib/logstash/output_delegator_strategies/shared.rb', line 7

def register
  @output.register
end