Search in sources :

Example 1 with DeadEventLoggingListener

use of org.graylog2.shared.events.DeadEventLoggingListener in project graylog2-server by Graylog2.

the class EventBusProvider method get.

@Override
public EventBus get() {
    final EventBus eventBus = new AsyncEventBus("graylog-eventbus", executorService(configuration.getAsyncEventbusProcessors()));
    eventBus.register(new DeadEventLoggingListener());
    return eventBus;
}
Also used : DeadEventLoggingListener(org.graylog2.shared.events.DeadEventLoggingListener) EventBus(com.google.common.eventbus.EventBus) AsyncEventBus(com.google.common.eventbus.AsyncEventBus) AsyncEventBus(com.google.common.eventbus.AsyncEventBus)

Example 2 with DeadEventLoggingListener

use of org.graylog2.shared.events.DeadEventLoggingListener in project graylog2-server by Graylog2.

the class ClusterEventBusProvider method get.

@Override
public ClusterEventBus get() {
    final ClusterEventBus eventBus = new ClusterEventBus("cluster-eventbus", executorService(asyncEventbusProcessors));
    eventBus.registerClusterEventSubscriber(new DeadEventLoggingListener());
    return eventBus;
}
Also used : DeadEventLoggingListener(org.graylog2.shared.events.DeadEventLoggingListener) ClusterEventBus(org.graylog2.events.ClusterEventBus)

Aggregations

DeadEventLoggingListener (org.graylog2.shared.events.DeadEventLoggingListener)2 AsyncEventBus (com.google.common.eventbus.AsyncEventBus)1 EventBus (com.google.common.eventbus.EventBus)1 ClusterEventBus (org.graylog2.events.ClusterEventBus)1