public class EventProcessorDependencyCheck extends Object
| Constructor and Description |
|---|
EventProcessorDependencyCheck(DBEventProcessorStateService stateService,
DBProcessingStatusService processingStatusService) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProcessTimerange(org.joda.time.DateTime maxTimestamp,
Set<String> processorDependencies)
Checks if the given event definitions have already processed events up to the given timestamp.
|
boolean |
hasMessagesIndexedUpTo(org.joda.time.DateTime latestTimestamp)
Checks if messages up to the given timestamp are searchable in Elasticsearch.
|
@Inject public EventProcessorDependencyCheck(DBEventProcessorStateService stateService, DBProcessingStatusService processingStatusService)
public boolean canProcessTimerange(org.joda.time.DateTime maxTimestamp,
Set<String> processorDependencies)
maxTimestamp - the max timestampprocessorDependencies - set of event definition IDspublic boolean hasMessagesIndexedUpTo(org.joda.time.DateTime latestTimestamp)
ProcessingStatusRecorder.
Caveat: This only looks at the processing status and doesn't take the Elasticsearch index.refresh_interval
into account!
latestTimestamp - the timestamp to checkCopyright © 2012–2021 Graylog, Inc.. All rights reserved.