Interface SolrIndexStatusService
- All Known Implementing Classes:
SolrIndexStatusServiceImpl
public interface SolrIndexStatusService
Responsible for reading and writing the status using one or more
SolrIndexStatusProvider
instances. getSeedStatusInstance() can be used to provide a custom IndexStatusInfo
implementation.- Author:
- Jeff Fischer
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndexErrorStatus(Long eventId, Integer retryCount, Date eventCreatedDate) Adds an error into the index statusvoidaddIndexStatus(Long eventId, Date eventCreatedDate) Adds a new IndexStatusInfo given the eventId and the create dateReturns a populated IndexStatusInfo instance from the provider(s)Provide a custom IndexStatusInfo instance to be used by the system.voidsetIndexStatus(IndexStatusInfo status) Adds an IndexStatusInfo entry into the status providers
-
Method Details
-
addIndexStatus
Adds a new IndexStatusInfo given the eventId and the create date- Parameters:
eventId-eventCreatedDate-
-
getIndexStatus
IndexStatusInfo getIndexStatus()Returns a populated IndexStatusInfo instance from the provider(s)- Returns:
- the index status information
-
setIndexStatus
Adds an IndexStatusInfo entry into the status providers- Parameters:
status-
-
getSeedStatusInstance
IndexStatusInfo getSeedStatusInstance()Provide a custom IndexStatusInfo instance to be used by the system.- Returns:
-
addIndexErrorStatus
Adds an error into the index status- Parameters:
eventId- the Id of the event that has erredretryCount- the pre-set retry count defined in the eventeventCreatedDate- the date that the event was created
-