class Fluent::Plugin::GCStatInput

Public Class Methods

new() click to toggle source
Calls superclass method Fluent::PluginLoggerMixin.new
# File lib/fluent/plugin/in_gc_stat.rb, line 25
def initialize
  super
end

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method Fluent::PluginLoggerMixin#configure
# File lib/fluent/plugin/in_gc_stat.rb, line 32
def configure(conf)
  super
end
multi_workers_ready?() click to toggle source
# File lib/fluent/plugin/in_gc_stat.rb, line 36
def multi_workers_ready?
  true
end
on_timer() click to toggle source
# File lib/fluent/plugin/in_gc_stat.rb, line 50
def on_timer
  now = Fluent::EventTime.now
  record = GC.stat
  router.emit(@tag, now, record)
end
shutdown() click to toggle source
Calls superclass method Fluent::Plugin::Base#shutdown
# File lib/fluent/plugin/in_gc_stat.rb, line 46
def shutdown
  super
end
start() click to toggle source
Calls superclass method Fluent::Plugin::Base#start
# File lib/fluent/plugin/in_gc_stat.rb, line 40
def start
  super

  timer_execute(:in_gc_stat, @emit_interval, &method(:on_timer))
end