Package org.alfresco.solr.tracker
Class ContentTracker
java.lang.Object
org.alfresco.solr.tracker.AbstractTracker
org.alfresco.solr.tracker.ActivatableTracker
org.alfresco.solr.tracker.ContentTracker
- All Implemented Interfaces:
Tracker
This tracker queries for docs with unclean content, and then updates them.
Similar to org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl
- Author:
- Ahmed Owian
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.solr.tracker.Tracker
Tracker.Type -
Field Summary
FieldsFields inherited from class org.alfresco.solr.tracker.ActivatableTracker
isEnabledFields inherited from class org.alfresco.solr.tracker.AbstractTracker
client, coreName, props, rollback, rollbackCausedBy, shardCount, shardInstance, shardKey, shardProperty, state, trackerId, transformContent, type -
Constructor Summary
ConstructorsConstructorDescriptionContentTracker(Properties p, org.alfresco.solr.client.SOLRAPIClient client, String coreName, InformationServer informationServer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidSubclasses must implement behaviour that completes the following steps, in order: Purge Reindex Index Track repositoryTrackers implementing this method should decide if the Run Lock is applied globally for every Tracker Thread (static) or locally for each running ThreadTrackers implementing this method should decide if the Write Lock is applied globally for every Tracker Thread (static) or locally for each running ThreadbooleanvoidvoidMethods inherited from class org.alfresco.solr.tracker.ActivatableTracker
clearScheduledMaintenanceWork, disable, enable, isDisabled, isEnabled, logAndClear, trackMethods inherited from class org.alfresco.solr.tracker.AbstractTracker
checkNode, getDocRouter, getProps, getRollback, getRollbackCausedBy, getTrackerState, getType, isAlreadyInShutDownMode, setRollback, setShutdown, shutdown
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
ContentTracker
public ContentTracker(Properties p, org.alfresco.solr.client.SOLRAPIClient client, String coreName, InformationServer informationServer)
-
-
Method Details
-
getWriteLock
Description copied from class:AbstractTrackerTrackers implementing this method should decide if the Write Lock is applied globally for every Tracker Thread (static) or locally for each running Thread- Specified by:
getWriteLockin interfaceTracker- Specified by:
getWriteLockin classAbstractTracker
-
getRunLock
Description copied from class:AbstractTrackerTrackers implementing this method should decide if the Run Lock is applied globally for every Tracker Thread (static) or locally for each running Thread- Specified by:
getRunLockin classAbstractTracker
-
doTrack
Description copied from class:AbstractTrackerSubclasses must implement behaviour that completes the following steps, in order:- Purge
- Reindex
- Index
- Track repository
- Specified by:
doTrackin classAbstractTracker- Parameters:
iterationId- an identifier which is uniquely associated with a given iteration.- Throws:
Exception
-
hasMaintenance
public boolean hasMaintenance() -
maintenance
public void maintenance() -
invalidateState
public void invalidateState()- Specified by:
invalidateStatein interfaceTracker- Overrides:
invalidateStatein classAbstractTracker
-