Class ModelTracker

    • Constructor Detail

      • ModelTracker

        public ModelTracker​(java.lang.String solrHome,
                            java.util.Properties p,
                            org.alfresco.solr.client.SOLRAPIClient client,
                            java.lang.String coreName,
                            InformationServer informationServer)
    • Method Detail

      • getWriteLock

        public java.util.concurrent.Semaphore getWriteLock()
        Description copied from class: AbstractTracker
        Trackers 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:
        getWriteLock in interface Tracker
        Specified by:
        getWriteLock in class AbstractTracker
      • getRunLock

        public java.util.concurrent.Semaphore getRunLock()
        Description copied from class: AbstractTracker
        Trackers 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:
        getRunLock in class AbstractTracker
      • hasMaintenance

        public boolean hasMaintenance()
      • maintenance

        public void maintenance()
      • doTrack

        protected void doTrack​(java.lang.String iterationId)
                        throws org.alfresco.httpclient.AuthenticationException,
                               java.io.IOException,
                               org.json.JSONException
        Description copied from class: AbstractTracker
        Subclasses must implement behaviour that completes the following steps, in order:
        1. Purge
        2. Reindex
        3. Index
        4. Track repository
        Specified by:
        doTrack in class AbstractTracker
        Parameters:
        iterationId - an identifier which is uniquely associated with a given iteration.
        Throws:
        org.alfresco.httpclient.AuthenticationException
        java.io.IOException
        org.json.JSONException
      • trackModels

        public void trackModels​(boolean onlyFirstTime)
                         throws org.alfresco.httpclient.AuthenticationException,
                                java.io.IOException,
                                org.json.JSONException
        Throws:
        org.alfresco.httpclient.AuthenticationException
        java.io.IOException
        org.json.JSONException
      • ensureFirstModelSync

        public void ensureFirstModelSync()
      • hasModels

        public boolean hasModels()