use of org.graylog2.lookup.db.DBDataAdapterService in project graylog2-server by Graylog2.
the class LookupDataAdapterFacadeTest method setUp.
@Before
@SuppressForbidden("Using Executors.newSingleThreadExecutor() is okay in tests")
public void setUp() throws Exception {
final ClusterEventBus clusterEventBus = new ClusterEventBus("cluster-event-bus", Executors.newSingleThreadExecutor());
dataAdapterService = new DBDataAdapterService(mongodb.mongoConnection(), new MongoJackObjectMapperProvider(objectMapper), clusterEventBus);
pluginMetaData = new HashSet<>();
facade = new LookupDataAdapterFacade(objectMapper, dataAdapterService, pluginMetaData);
}
Aggregations