public class ModelTracker extends AbstractTracker implements Tracker
Tracker.TypealfrescoVersion, batchCount, client, coreName, infoSrv, isMaster, isSlave, log, 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 and Description |
|---|
ModelTracker(String solrHome,
Properties p,
SOLRAPIClient client,
String coreName,
InformationServer informationServer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTrack()
Subclasses must implement behaviour that completes the following steps, in order:
Purge
Reindex
Index
Track repository
|
void |
ensureFirstModelSync() |
boolean |
hasMaintenance() |
boolean |
hasModels() |
void |
maintenance() |
void |
trackModels(boolean onlyFirstTime) |
checkShutdown, getAlfrescoVersion, getMaxLiveSearchers, getProps, getRollback, getRunLock, getTrackerState, getType, getWriteLock, invalidateState, setRollback, setShutdown, shutdown, track, waitForAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAlfrescoVersion, getProps, getRollback, getTrackerState, getType, getWriteLock, invalidateState, setRollback, setShutdown, shutdown, trackpublic ModelTracker(String solrHome, Properties p, SOLRAPIClient client, String coreName, InformationServer informationServer)
public boolean hasMaintenance()
hasMaintenance in interface Trackerpublic void maintenance()
maintenance in interface Trackerprotected void doTrack()
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
AbstractTrackerdoTrack in class AbstractTrackerorg.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic void trackModels(boolean onlyFirstTime)
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic void ensureFirstModelSync()
public boolean hasModels()
Copyright © 2005–2020 Alfresco Software. All rights reserved.