Package org.alfresco.solr.tracker
Class CommitTracker
java.lang.Object
org.alfresco.solr.tracker.AbstractTracker
org.alfresco.solr.tracker.CommitTracker
- All Implemented Interfaces:
Tracker
- Author:
- Joel Bernstein
-
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.AbstractTracker
client, coreName, props, rollback, rollbackCausedBy, shardCount, shardInstance, shardKey, shardProperty, state, trackerId, transformContent, type -
Constructor Summary
ConstructorsConstructorDescriptionCommitTracker(Properties p, org.alfresco.solr.client.SOLRAPIClient client, String coreName, InformationServer informationServer, List<Tracker> trackers) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidSubclasses must implement behaviour that completes the following steps, in order: Purge Reindex Index Track repositoryintTrackers 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 ThreadbooleanvoidMethods inherited from class org.alfresco.solr.tracker.AbstractTracker
checkNode, getDocRouter, getProps, getRollback, getRollbackCausedBy, getTrackerState, getType, invalidateState, isAlreadyInShutDownMode, setRollback, setShutdown, shutdown, track
-
Field Details
-
LOGGER
protected static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
CommitTracker
public CommitTracker(Properties p, org.alfresco.solr.client.SOLRAPIClient client, String coreName, InformationServer informationServer, List<Tracker> trackers)
-
-
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
-
hasMaintenance
public boolean hasMaintenance() -
getRollbackCount
public int getRollbackCount() -
maintenance
- Throws:
Exception
-
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:
Throwable
-
doRollback
protected void doRollback()
-