Class: Fluent::AppdynamicsInput::TimerWatcher

Inherits:
Coolio::TimerWatcher
  • Object
show all
Defined in:
lib/fluent/plugin/in_appdynamics.rb

Overview

Timewatcher class to handle collio

Instance Method Summary collapse

Constructor Details

#initialize(interval, repeat, &callback) ⇒ TimerWatcher



25
26
27
28
# File 'lib/fluent/plugin/in_appdynamics.rb', line 25

def initialize(interval, repeat, &callback)
  @callback = callback
  super(interval, repeat)
end

Instance Method Details

#on_timerObject

def initialize



30
31
32
33
34
35
# File 'lib/fluent/plugin/in_appdynamics.rb', line 30

def on_timer
  @callback.call
rescue
  $log.error $!.to_s
  $log.error_backtrace
end