Search in sources :

Example 6 with InMemoryGrokPatternService

use of org.graylog2.grok.InMemoryGrokPatternService in project graylog2-server by Graylog2.

the class InMemoryGrokPatternServiceTest method setup.

@Before
@SuppressForbidden("Using Executors.newSingleThreadExecutor() is okay in tests")
public void setup() {
    final ClusterEventBus clusterEventBus = new ClusterEventBus("cluster-event-bus", Executors.newSingleThreadExecutor());
    service = new InMemoryGrokPatternService(clusterEventBus);
}
Also used : ClusterEventBus(org.graylog2.events.ClusterEventBus) Before(org.junit.Before) SuppressForbidden(org.graylog2.shared.SuppressForbidden)

Aggregations

ClusterEventBus (org.graylog2.events.ClusterEventBus)6 SuppressForbidden (org.graylog2.shared.SuppressForbidden)6 InMemoryGrokPatternService (org.graylog2.grok.InMemoryGrokPatternService)5 Before (org.junit.Before)5 EventBus (com.google.common.eventbus.EventBus)2 GrokPatternRegistry (org.graylog2.grok.GrokPatternRegistry)2 GrokPatternService (org.graylog2.grok.GrokPatternService)2 MetricRegistry (com.codahale.metrics.MetricRegistry)1 HashMap (java.util.HashMap)1 HashSet (java.util.HashSet)1 ConfigurationException (org.graylog2.ConfigurationException)1 PaginatedGrokPatternService (org.graylog2.grok.PaginatedGrokPatternService)1 InputServiceImpl (org.graylog2.inputs.InputServiceImpl)1 ConverterFactory (org.graylog2.inputs.converters.ConverterFactory)1 ExtractorFactory (org.graylog2.inputs.extractors.ExtractorFactory)1 FakeHttpMessageInput (org.graylog2.inputs.random.FakeHttpMessageInput)1 RawUDPInput (org.graylog2.inputs.raw.udp.RawUDPInput)1 LocalMetricRegistry (org.graylog2.plugin.LocalMetricRegistry)1 PluginMetaData (org.graylog2.plugin.PluginMetaData)1 MessageInput (org.graylog2.plugin.inputs.MessageInput)1