Class FilebeatIngester
- java.lang.Object
-
- com.wavefront.agent.logsharvesting.FilebeatIngester
-
- All Implemented Interfaces:
IMessageListener
public class FilebeatIngester extends Object implements IMessageListener
- Author:
- Mori Bellamy ([email protected])
-
-
Constructor Summary
Constructors Constructor Description FilebeatIngester(LogsIngester logsIngester, Supplier<Long> currentMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
logger
protected static final Logger logger
-
-
Constructor Detail
-
FilebeatIngester
public FilebeatIngester(LogsIngester logsIngester, Supplier<Long> currentMillis)
-
-
Method Detail
-
onNewMessage
public void onNewMessage(io.netty.channel.ChannelHandlerContext ctx, Message message)
Description copied from interface:IMessageListener
This is triggered on every new message parsed by the beats handler and should be executed in the ruby world.- Specified by:
onNewMessage
in interfaceIMessageListener
-
onNewConnection
public void onNewConnection(io.netty.channel.ChannelHandlerContext ctx)
Description copied from interface:IMessageListener
Triggered when a new client connect to the input, this is used to link a connection to a codec in the ruby world.- Specified by:
onNewConnection
in interfaceIMessageListener
-
onConnectionClose
public void onConnectionClose(io.netty.channel.ChannelHandlerContext ctx)
Description copied from interface:IMessageListener
Triggered when a connection is close on the remote end and we need to flush buffered events to the queue.- Specified by:
onConnectionClose
in interfaceIMessageListener
-
onException
public void onException(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
Description copied from interface:IMessageListener
Called went something bad occur in the pipeline, allow to clear buffered codec went somethign goes wrong.- Specified by:
onException
in interfaceIMessageListener
-
onChannelInitializeException
public void onChannelInitializeException(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
Description copied from interface:IMessageListener
Called when a error occur in the channel initialize, usually ssl handshake error.- Specified by:
onChannelInitializeException
in interfaceIMessageListener
-
-