org.graylog.events.search.MoreSearchAdapter Maven / Gradle / Ivy
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* .
*/
package org.graylog.events.search;
import org.graylog.events.processor.EventProcessorException;
import org.graylog2.indexer.results.ResultMessage;
import org.graylog2.indexer.searches.Sorting;
import org.graylog2.plugin.indexer.searches.timeranges.TimeRange;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicBoolean;
public interface MoreSearchAdapter {
MoreSearch.Result eventSearch(String queryString, TimeRange timerange, Set affectedIndices, Sorting sorting, int page, int perPage, Set eventStreams, String filterString, Set forbiddenSourceStreams);
interface ScrollEventsCallback {
void accept(List results, AtomicBoolean requestContinue) throws EventProcessorException;
}
void scrollEvents(String queryString, TimeRange timeRange, Set affectedIndices, Set streams, String scrollTime, int batchSize, ScrollEventsCallback resultCallback) throws EventProcessorException;
}