Class: Fluent::Plugin::Rds_LogInput

Inherits:
Input
  • Object
show all
Defined in:
lib/fluent/plugin/in_rds_log.rb

Instance Method Summary collapse

Constructor Details

#initializeRds_LogInput

Returns a new instance of Rds_LogInput.



23
24
25
# File 'lib/fluent/plugin/in_rds_log.rb', line 23

def initialize
  super
end

Instance Method Details

#configure(conf) ⇒ Object



27
28
29
30
31
32
# File 'lib/fluent/plugin/in_rds_log.rb', line 27

def configure(conf)
  super
  if @log_type.nil?
    $log.error "fluent-plugin-rds-log: missing parameter log_type is {slow_log|general_log}"
  end
end

#shutdownObject



39
40
41
42
43
# File 'lib/fluent/plugin/in_rds_log.rb', line 39

def shutdown
  super
  @watcher.terminate
  @watcher.join
end

#startObject



34
35
36
37
# File 'lib/fluent/plugin/in_rds_log.rb', line 34

def start
  super
  @watcher = Thread.new(&method(:watch))
end