public abstract class AbstractTracker extends Object implements Tracker
Tracker behaviour.| Modifier and Type | Field and Description |
|---|---|
protected String |
alfrescoVersion |
protected long |
batchCount |
protected org.alfresco.solr.client.SOLRAPIClient |
client |
protected String |
coreName |
protected InformationServer |
infoSrv |
protected boolean |
isMaster |
protected boolean |
isSlave |
protected static org.slf4j.Logger |
log |
protected Properties |
props |
protected boolean |
runPostModelLoadInit |
protected int |
shardCount |
protected int |
shardInstance |
protected String |
shardTemplate |
protected org.alfresco.service.cmr.repository.StoreRef |
storeRef |
protected ThreadHandler |
threadHandler |
static long |
TIME_STEP_1_HR_IN_MS |
static long |
TIME_STEP_32_DAYS_IN_MS |
protected org.alfresco.solr.tracker.TrackerStats |
trackerStats |
protected boolean |
transformContent |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTracker(Properties p,
org.alfresco.solr.client.SOLRAPIClient client,
String coreName,
InformationServer informationServer) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkShutdown() |
void |
close() |
protected abstract void |
doTrack()
Subclasses must implement behaviour that completes the following steps, in order:
Purge
Reindex
Index
Track repository
|
String |
getAlfrescoVersion() |
int |
getMaxLiveSearchers() |
org.alfresco.solr.TrackerState |
getTrackerState() |
protected boolean |
isInAclShard(long aclId) |
void |
setShutdown(boolean shutdown) |
void |
track()
|
protected void |
waitForAsynchronous()
Allows time for the scheduled asynchronous tasks to complete
|
public static final long TIME_STEP_32_DAYS_IN_MS
public static final long TIME_STEP_1_HR_IN_MS
protected static final org.slf4j.Logger log
protected Properties props
protected org.alfresco.solr.client.SOLRAPIClient client
protected InformationServer infoSrv
protected final String coreName
protected org.alfresco.service.cmr.repository.StoreRef storeRef
protected long batchCount
protected boolean isSlave
protected boolean isMaster
protected String alfrescoVersion
protected org.alfresco.solr.tracker.TrackerStats trackerStats
protected boolean runPostModelLoadInit
protected int shardCount
protected int shardInstance
protected boolean transformContent
protected String shardTemplate
protected ThreadHandler threadHandler
protected AbstractTracker(Properties p, org.alfresco.solr.client.SOLRAPIClient client, String coreName, InformationServer informationServer)
protected boolean isInAclShard(long aclId)
protected abstract void doTrack()
throws Throwable
Throwablepublic void track()
public org.alfresco.solr.TrackerState getTrackerState()
getTrackerState in interface Trackerprotected void waitForAsynchronous()
public int getMaxLiveSearchers()
protected void checkShutdown()
public void setShutdown(boolean shutdown)
setShutdown in interface Trackerpublic String getAlfrescoVersion()
getAlfrescoVersion in interface TrackerCopyright © 2005–2017 Alfresco Software. All rights reserved.