Package org.alfresco.solr.tracker
Class CascadeTracker
- java.lang.Object
-
- org.alfresco.solr.tracker.AbstractTracker
-
- org.alfresco.solr.tracker.CascadeTracker
-
- All Implemented Interfaces:
Tracker
public class CascadeTracker extends AbstractTracker implements Tracker
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.alfresco.solr.tracker.Tracker
Tracker.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Loggerlog-
Fields inherited from class org.alfresco.solr.tracker.AbstractTracker
alfrescoVersion, batchCount, client, coreName, infoSrv, isMaster, isSlave, props, rollback, runPostModelLoadInit, SHARD_METHOD_ACLID, SHARD_METHOD_DBID, shardCount, shardInstance, shardMethod, shardTemplate, state, storeRef, threadHandler, TIME_STEP_1_HR_IN_MS, TIME_STEP_32_DAYS_IN_MS, trackerStats, transformContent, type
-
-
Constructor Summary
Constructors Constructor Description CascadeTracker(Properties p, org.alfresco.solr.client.SOLRAPIClient client, String coreName, InformationServer informationServer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoTrack()Subclasses must implement behaviour that completes the following steps, in order: Purge Reindex Index Track repositorybooleanhasMaintenance()voidinvalidateState()voidmaintenance()-
Methods inherited from class org.alfresco.solr.tracker.AbstractTracker
checkShutdown, getAlfrescoVersion, getMaxLiveSearchers, getProps, getRollback, getRunLock, getTrackerState, getType, getWriteLock, setRollback, setShutdown, shutdown, track, waitForAsynchronous
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.alfresco.solr.tracker.Tracker
getAlfrescoVersion, getProps, getRollback, getTrackerState, getType, getWriteLock, setRollback, setShutdown, shutdown, track
-
-
-
-
Constructor Detail
-
CascadeTracker
public CascadeTracker(Properties p, org.alfresco.solr.client.SOLRAPIClient client, String coreName, InformationServer informationServer)
-
-
Method Detail
-
doTrack
protected void doTrack() throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException, org.apache.commons.codec.EncoderExceptionDescription copied from class:AbstractTrackerSubclasses must implement behaviour that completes the following steps, in order:- Purge
- Reindex
- Index
- Track repository
- Specified by:
doTrackin classAbstractTracker- Throws:
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionorg.apache.commons.codec.EncoderException
-
maintenance
public void maintenance() throws Exception- Specified by:
maintenancein interfaceTracker- Throws:
Exception
-
hasMaintenance
public boolean hasMaintenance()
- Specified by:
hasMaintenancein interfaceTracker
-
invalidateState
public void invalidateState()
- Specified by:
invalidateStatein interfaceTracker- Overrides:
invalidateStatein classAbstractTracker
-
-