Class: Fluent::Plugin::Rds_LogInput
- Inherits:
-
Input
- Object
- Input
- Fluent::Plugin::Rds_LogInput
- Defined in:
- lib/fluent/plugin/in_rds_log.rb
Instance Method Summary collapse
- #configure(conf) ⇒ Object
-
#initialize ⇒ Rds_LogInput
constructor
A new instance of Rds_LogInput.
- #shutdown ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize ⇒ Rds_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 |
#shutdown ⇒ Object
39 40 41 42 43 |
# File 'lib/fluent/plugin/in_rds_log.rb', line 39 def shutdown super @watcher.terminate @watcher.join end |
#start ⇒ Object
34 35 36 37 |
# File 'lib/fluent/plugin/in_rds_log.rb', line 34 def start super @watcher = Thread.new(&method(:watch)) end |