Class AbstractTracker

    • Field Detail

      • TIME_STEP_32_DAYS_IN_MS

        public static final long TIME_STEP_32_DAYS_IN_MS
        See Also:
        Constant Field Values
      • log

        protected static final org.slf4j.Logger log
      • client

        protected org.alfresco.solr.client.SOLRAPIClient client
      • coreName

        protected String coreName
      • storeRef

        protected org.alfresco.service.cmr.repository.StoreRef storeRef
      • batchCount

        protected long batchCount
      • isSlave

        protected boolean isSlave
      • isMaster

        protected boolean isMaster
      • alfrescoVersion

        protected String alfrescoVersion
      • trackerStats

        protected org.alfresco.solr.tracker.TrackerStats trackerStats
      • runPostModelLoadInit

        protected boolean runPostModelLoadInit
      • state

        protected volatile org.alfresco.solr.TrackerState state
      • shardCount

        protected int shardCount
      • shardInstance

        protected int shardInstance
      • shardMethod

        protected String shardMethod
      • transformContent

        protected boolean transformContent
      • shardTemplate

        protected String shardTemplate
      • rollback

        protected volatile boolean rollback
    • Constructor Detail

      • AbstractTracker

        protected AbstractTracker​(Tracker.Type type)
        Default constructor, strictly for testing.
    • Method Detail

      • doTrack

        protected abstract void doTrack()
                                 throws Throwable
        Subclasses must implement behaviour that completes the following steps, in order:
        1. Purge
        2. Reindex
        3. Index
        4. Track repository
        Throws:
        Throwable
      • track

        public void track()
        Template method - subclasses must implement the Tracker-specific indexing by implementing the abstract method doTrack().
        Specified by:
        track in interface Tracker
      • getRollback

        public boolean getRollback()
        Specified by:
        getRollback in interface Tracker
      • setRollback

        public void setRollback​(boolean rollback)
        Specified by:
        setRollback in interface Tracker
      • getTrackerState

        public org.alfresco.solr.TrackerState getTrackerState()
        Specified by:
        getTrackerState in interface Tracker
      • waitForAsynchronous

        protected void waitForAsynchronous()
        Allows time for the scheduled asynchronous tasks to complete
      • getMaxLiveSearchers

        public int getMaxLiveSearchers()
      • checkShutdown

        protected void checkShutdown()
      • setShutdown

        public void setShutdown​(boolean shutdown)
        Specified by:
        setShutdown in interface Tracker
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface Tracker
      • getAlfrescoVersion

        public String getAlfrescoVersion()
        Specified by:
        getAlfrescoVersion in interface Tracker
        Returns:
        Alfresco version Solr was built for