class Fluent::StatsitePlugin::StatsiteAggregateParser::TimerWatcher
Public Class Methods
new(duration, log, callback)
click to toggle source
Calls superclass method
# File lib/fluent/plugin/statsite/parser.rb, line 76 def initialize(duration, log, callback) @callback = callback @log = log super(interval, repeat) end
Public Instance Methods
on_timer()
click to toggle source
# File lib/fluent/plugin/statsite/parser.rb, line 82 def on_timer @callback.call rescue @log.error $!.to_s @log.error_backtrace end