Class: Fluent::TcpOutput
- Inherits:
-
StreamOutput
- Object
- StreamOutput
- Fluent::TcpOutput
- Defined in:
- lib/fluent/plugin/out_stream.rb
Overview
obsolete
Constant Summary collapse
- LISTEN_PORT =
24224
Instance Method Summary collapse
- #configure(conf) ⇒ Object
- #connect ⇒ Object
-
#initialize ⇒ TcpOutput
constructor
A new instance of TcpOutput.
Methods inherited from StreamOutput
#flush_secondary, #format_stream, #write
Constructor Details
#initialize ⇒ TcpOutput
Returns a new instance of TcpOutput.
93 94 95 96 97 |
# File 'lib/fluent/plugin/out_stream.rb', line 93 def initialize super $log.warn "'tcp' output is obsoleted and will be removed. Use 'forward' instead." $log.warn "see 'forward' section in https://docs.fluentd.org/ for the high-availability configuration." end |
Instance Method Details
#configure(conf) ⇒ Object
102 103 104 |
# File 'lib/fluent/plugin/out_stream.rb', line 102 def configure(conf) super end |
#connect ⇒ Object
106 107 108 |
# File 'lib/fluent/plugin/out_stream.rb', line 106 def connect TCPSocket.new(@host, @port) end |