public class FilebeatIngester extends Object implements IMessageListener
Constructor and Description |
---|
FilebeatIngester(LogsIngester logsIngester,
java.util.function.Supplier<Long> currentMillis) |
Modifier and Type | Method and Description |
---|---|
void |
onChannelInitializeException(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
Called when a error occur in the channel initialize, usually ssl handshake error.
|
void |
onConnectionClose(io.netty.channel.ChannelHandlerContext ctx)
Triggered when a connection is close on the remote end and we need to flush buffered
events to the queue.
|
void |
onException(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause)
Called went something bad occur in the pipeline, allow to clear buffered codec went
somethign goes wrong.
|
void |
onNewConnection(io.netty.channel.ChannelHandlerContext ctx)
Triggered when a new client connect to the input, this is used to link a connection
to a codec in the ruby world.
|
void |
onNewMessage(io.netty.channel.ChannelHandlerContext ctx,
Message message)
This is triggered on every new message parsed by the beats handler
and should be executed in the ruby world.
|
protected static final Logger logger
public FilebeatIngester(LogsIngester logsIngester, java.util.function.Supplier<Long> currentMillis)
public void onNewMessage(io.netty.channel.ChannelHandlerContext ctx, Message message)
IMessageListener
onNewMessage
in interface IMessageListener
public void onNewConnection(io.netty.channel.ChannelHandlerContext ctx)
IMessageListener
onNewConnection
in interface IMessageListener
public void onConnectionClose(io.netty.channel.ChannelHandlerContext ctx)
IMessageListener
onConnectionClose
in interface IMessageListener
public void onException(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
IMessageListener
onException
in interface IMessageListener
public void onChannelInitializeException(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
IMessageListener
onChannelInitializeException
in interface IMessageListener
Copyright © 2017. All rights reserved.