public class FileSystemSolrIndexStatusProviderImpl extends Object implements SolrIndexStatusProvider
| Modifier and Type | Field and Description |
|---|---|
protected DocumentBuilder |
builder |
protected Integer |
deadEventPurgeCycleSeconds |
protected Integer |
deadEventTTLSeconds |
protected SimpleDateFormat |
format |
protected SearchService |
searchService |
protected SolrConfiguration |
solrConfiguration |
protected XPath |
xPath |
| Constructor and Description |
|---|
FileSystemSolrIndexStatusProviderImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearNode(Element parentElement,
String nodeName)
Common routine to remove all children nodes from the passed element container
|
protected String |
getStatusDirectory(SolrSearchServiceImpl searchService) |
protected File |
getStatusFile(SolrSearchServiceImpl searchService) |
void |
handleUpdateIndexStatus(IndexStatusInfo status)
Updates the XML file with the index status, error status, and dead event status
|
protected void |
handleUpdateIndexStatus(IndexStatusInfo status,
boolean clearDeadEvents)
Updates the XML file with the index status, error status, and dead event status
|
protected void |
purgeDeadEvents(Document document,
IndexStatusInfo status)
Periodically purges the dead events based on solr.index.status.dead.event.purge.seconds - populating the deadEvents map in the IndexStatusInfo when it does.
|
IndexStatusInfo |
readIndexStatus(IndexStatusInfo status)
Builds the Index Status object.
|
protected void |
updateDeadEventSegment(Document document,
Element rootElement,
IndexStatusInfo status,
boolean clearDeadEvents)
Performs the XML building for the dead event segment.
|
protected void |
updateErrorSegment(Document document,
Element rootElement,
IndexStatusInfo status)
Performs the XML building for the error segment
|
protected void |
updateIndexSegment(Document document,
Element rootElement,
IndexStatusInfo status)
Performs the XML building for the Index segment
|
@Qualifier(value="blCatalogSolrConfiguration") @Autowired(required=false) protected SolrConfiguration solrConfiguration
protected SearchService searchService
protected DocumentBuilder builder
protected XPath xPath
protected SimpleDateFormat format
@Value(value="${solr.index.status.dead.event.ttl.seconds:165600}")
protected Integer deadEventTTLSeconds
@Value(value="${solr.index.status.dead.event.purge.seconds:3600}")
protected Integer deadEventPurgeCycleSeconds
public FileSystemSolrIndexStatusProviderImpl()
public void handleUpdateIndexStatus(IndexStatusInfo status)
handleUpdateIndexStatus in interface SolrIndexStatusProviderprotected void handleUpdateIndexStatus(IndexStatusInfo status, boolean clearDeadEvents)
protected void updateIndexSegment(Document document, Element rootElement, IndexStatusInfo status) throws XPathExpressionException, ParseException
document - rootElement - status - XPathExpressionExceptionParseExceptionprotected void updateErrorSegment(Document document, Element rootElement, IndexStatusInfo status) throws XPathExpressionException
document - rootElement - status - XPathExpressionExceptionprotected void updateDeadEventSegment(Document document, Element rootElement, IndexStatusInfo status, boolean clearDeadEvents) throws XPathExpressionException
document - rootElement - status - XPathExpressionExceptionprotected void clearNode(Element parentElement, String nodeName) throws XPathExpressionException
parentElement - nodeName - XPathExpressionExceptionpublic IndexStatusInfo readIndexStatus(IndexStatusInfo status)
readIndexStatus in interface SolrIndexStatusProviderprotected void purgeDeadEvents(Document document, IndexStatusInfo status) throws XPathExpressionException, ParseException
document - status - XPathExpressionExceptionParseExceptionprotected File getStatusFile(SolrSearchServiceImpl searchService)
protected String getStatusDirectory(SolrSearchServiceImpl searchService)
Copyright © 2026. All rights reserved.