lib/logstash/inputs/perfmon.rb in logstash-input-perfmon-0.1.3 vs lib/logstash/inputs/perfmon.rb in logstash-input-perfmon-0.1.4

- old
+ new

@@ -82,13 +82,21 @@ @logger.debug("Added event to queue: #{event}") end end end - # Cleans up any resources + # Cleans up any resources, called when Ctrl+C used def teardown + @logger.debug("Calling teardown on logstash-input-perfmon") @typeperf.stop_monitor @logger.debug("Stopped the perfmon monitor") finished + end + + # Manual way to stop the plugin + def stop + @logger.debug("Calling stop on logstash-input-perfmon") + @typeperf.stop_monitor + @logger.debug("Stopped the perfmon monitor") end end \ No newline at end of file