class SNMP::TrapListener
Patch SNMP::TrapListener#process_traps
to ignore exceptions when stopping.
Public Instance Methods
exit()
click to toggle source
# File lib/logstash/inputs/snmptrap/patches/trap_listener.rb, line 6 def exit @stop = true original_exit end
Also aliased as: original_exit
process_traps(*args)
click to toggle source
# File lib/logstash/inputs/snmptrap/patches/trap_listener.rb, line 16 def process_traps(*args) original_process_traps(*args) rescue raise unless stop? end
Also aliased as: original_process_traps
stop?()
click to toggle source
# File lib/logstash/inputs/snmptrap/patches/trap_listener.rb, line 11 def stop? @stop end