Class: Fluent::OpenLDAPMonitorInput::TimerWatcher
- Inherits:
-
Coolio::TimerWatcher
- Object
- Coolio::TimerWatcher
- Fluent::OpenLDAPMonitorInput::TimerWatcher
- Defined in:
- lib/fluent/plugin/in_openldap_monitor.rb
Instance Method Summary collapse
-
#initialize(interval, repeat, &checker) ⇒ TimerWatcher
constructor
A new instance of TimerWatcher.
- #on_timer ⇒ Object
Constructor Details
#initialize(interval, repeat, &checker) ⇒ TimerWatcher
Returns a new instance of TimerWatcher.
94 95 96 97 |
# File 'lib/fluent/plugin/in_openldap_monitor.rb', line 94 def initialize(interval, repeat, &checker) @checker = checker super(interval, repeat) end |
Instance Method Details
#on_timer ⇒ Object
99 100 101 |
# File 'lib/fluent/plugin/in_openldap_monitor.rb', line 99 def on_timer @checker.call end |