Class: Fluent::Plugin::SigdumpInput

Inherits:
Input
  • Object
show all
Defined in:
lib/fluent/plugin/in_sigdump.rb

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



36
37
38
39
40
41
42
43
# File 'lib/fluent/plugin/in_sigdump.rb', line 36

def configure(conf)
  super

  @dir_permission = system_config.dir_permission || Fluent::DEFAULT_DIR_PERMISSION
  unless Fluent::FileUtil.writable_p?(get_output_path())
    raise Fluent::ConfigError, "'dir_path' doesn't have enough permission.: #{@dir_path}"
  end
end

#on_timerObject



54
55
56
57
# File 'lib/fluent/plugin/in_sigdump.rb', line 54

def on_timer
  setup
  dump
end

#shutdownObject



50
51
52
# File 'lib/fluent/plugin/in_sigdump.rb', line 50

def shutdown
  super
end

#startObject



45
46
47
48
# File 'lib/fluent/plugin/in_sigdump.rb', line 45

def start
  super
  timer_execute(:in_sigdump, @scrape_interval, &method(:on_timer))
end