@Service(value="blSolrIndexStatusService") public class SolrIndexStatusServiceImpl extends Object implements SolrIndexStatusService
| Modifier and Type | Field and Description |
|---|---|
protected List<SolrIndexStatusProvider> |
providers |
protected Integer |
solrIndexStatusErrorRetryCount |
| Constructor and Description |
|---|
SolrIndexStatusServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addIndexErrorStatus(Long eventId,
Integer eventRetryCount,
Date eventCreatedDate)
Will add a new IndexError entry if one does not exist.
|
void |
addIndexStatus(Long eventId,
Date eventCreatedDate)
Adds a new IndexStatusInfo given the eventId and the create date
|
protected void |
clearErrorStatus(IndexStatusInfo status)
Removes an existing error status entry.
|
IndexStatusInfo |
getIndexStatus()
Returns a populated IndexStatusInfo instance from the provider(s)
|
IndexStatusInfo |
getSeedStatusInstance()
Provide a custom IndexStatusInfo instance to be used by the system.
|
protected List<Long> |
isEventIdInError(Collection<String> additionalInfoIds,
IndexStatusInfo persistedStatus)
Determines which passed InfoIds already exist in the persisted statuses from the provider(s)
|
void |
setIndexStatus(IndexStatusInfo status)
Adds an IndexStatusInfo entry into the status providers
|
protected void |
updateIndexStatus(IndexStatusInfo status)
Performs the actual update process with the list of providers
|
protected List<SolrIndexStatusProvider> providers
@Value(value="${solr.index.status.error.retry.count:3}")
protected Integer solrIndexStatusErrorRetryCount
public void setIndexStatus(IndexStatusInfo status)
SolrIndexStatusServicesetIndexStatus in interface SolrIndexStatusServicepublic void addIndexStatus(Long eventId, Date eventCreatedDate)
SolrIndexStatusServiceaddIndexStatus in interface SolrIndexStatusServicepublic IndexStatusInfo getIndexStatus()
SolrIndexStatusServicegetIndexStatus in interface SolrIndexStatusServicepublic void addIndexErrorStatus(Long eventId, Integer eventRetryCount, Date eventCreatedDate)
addIndexErrorStatus in interface SolrIndexStatusServiceeventId - The id of the event producing the errorretryCount - The retry count as defined by the eventeventCreatedDate - The date that the event was createdpublic IndexStatusInfo getSeedStatusInstance()
SolrIndexStatusServicegetSeedStatusInstance in interface SolrIndexStatusServiceprotected void updateIndexStatus(IndexStatusInfo status)
status - protected void clearErrorStatus(IndexStatusInfo status)
status - protected List<Long> isEventIdInError(Collection<String> additionalInfoIds, IndexStatusInfo persistedStatus)
additionalInfoIds - persistedStatus - Copyright © 2018. All rights reserved.