public class DBProcessingStatusService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_NAME |
| Constructor and Description |
|---|
DBProcessingStatusService(MongoConnection mongoConnection,
NodeId nodeId,
JobSchedulerClock clock,
com.github.joschi.jadconfig.util.Duration updateThreshold,
int journalWriteRateThreshold,
MongoJackObjectMapperProvider mapper,
BaseConfiguration baseConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
List<ProcessingStatusDto> |
all()
Rerturns all existing processing status entries from the database.
|
Optional<org.joda.time.DateTime> |
earliestPostIndexingTimestamp()
Returns the earliest post-indexing receive timestamp of all active Graylog nodes in the cluster.
|
Optional<ProcessingStatusDto> |
get()
Returns the processing status entry for the calling node.
|
ProcessingStatusDto |
save(ProcessingStatusRecorder processingStatusRecorder)
Create or update (upsert) a processing status entry for the given
ProcessingStatusRecorder using the
caller's node ID. |
public static final String COLLECTION_NAME
@Inject public DBProcessingStatusService(MongoConnection mongoConnection, NodeId nodeId, JobSchedulerClock clock, @Named(value="processing_status_update_threshold") com.github.joschi.jadconfig.util.Duration updateThreshold, @Named(value="processing_status_journal_write_rate_threshold") int journalWriteRateThreshold, MongoJackObjectMapperProvider mapper, BaseConfiguration baseConfiguration)
public List<ProcessingStatusDto> all()
public Optional<ProcessingStatusDto> get()
public Optional<org.joda.time.DateTime> earliestPostIndexingTimestamp()
Beware: This only takes the message receive time into account. It doesn't help when log sources send their messages late.
public ProcessingStatusDto save(ProcessingStatusRecorder processingStatusRecorder)
ProcessingStatusRecorder using the
caller's node ID.processingStatusRecorder - the processing recorder object to create/updateCopyright © 2012–2021 Graylog, Inc.. All rights reserved.