Search in sources :

Example 1 with BeatsHandler

use of org.logstash.beats.BeatsHandler in project LogHub by fbacchella.

the class Beats method addHandlers.

@Override
public void addHandlers(ChannelPipeline pipe) {
    super.addHandlers(pipe);
    // From org.logstash.beats.Server
    // We have set a specific executor for the idle check, because the `beatsHandler` can be
    // blocked on the queue, this the idleStateHandler manage the `KeepAlive` signal.
    pipe.addBefore(idleExecutorGroup, "Splitter", "KeepAlive", new IdleStateHandler(clientInactivityTimeoutSeconds, 5, 0));
    pipe.addAfter("Splitter", "Acker", new AckEncoder());
    pipe.addAfter("Acker", "Handler", new BeatsHandler(messageListener));
}
Also used : BeatsHandler(org.logstash.beats.BeatsHandler) IdleStateHandler(io.netty.handler.timeout.IdleStateHandler) AckEncoder(org.logstash.beats.AckEncoder)

Aggregations

IdleStateHandler (io.netty.handler.timeout.IdleStateHandler)1 AckEncoder (org.logstash.beats.AckEncoder)1 BeatsHandler (org.logstash.beats.BeatsHandler)1