class Fluent::CephInput::TimerWatcher

Public Class Methods

new(interval, repeat, &method) click to toggle source
Calls superclass method
# File lib/fluent/plugin/in_ceph.rb, line 88
def initialize(interval, repeat, &method)
  @emit_message = method
  super(interval, repeat)
end

Public Instance Methods

on_timer() click to toggle source
# File lib/fluent/plugin/in_ceph.rb, line 93
def on_timer
  @emit_message.call
rescue
  $log.error $!.to_s
  $log.error_backtrace
end