Class: Fluent::UnixInput
- Inherits:
-
StreamInput
- Object
- StreamInput
- Fluent::UnixInput
- Defined in:
- lib/fluent/plugin/in_unix.rb
Instance Method Summary collapse
Methods inherited from StreamInput
#initialize, #run, #shutdown, #start
Constructor Details
This class inherits a constructor from Fluent::StreamInput
Instance Method Details
#configure(conf) ⇒ Object
185 186 187 188 |
# File 'lib/fluent/plugin/in_unix.rb', line 185 def configure(conf) super #log.warn "'unix' input is obsoleted and will be removed. Use 'forward' instead." end |
#listen ⇒ Object
190 191 192 193 194 195 196 197 198 199 |
# File 'lib/fluent/plugin/in_unix.rb', line 190 def listen if File.exist?(@path) File.unlink(@path) end FileUtils.mkdir_p File.dirname(@path) log.info "listening fluent socket on #{@path}" s = Coolio::UNIXServer.new(@path, Handler, log, method(:on_message)) s.listen(@backlog) unless @backlog.nil? s end |