public abstract class AbstractTracker extends Object implements Tracker
Tracker behaviour.Tracker.Type| Modifier and Type | Field and Description |
|---|---|
protected String |
alfrescoVersion |
protected long |
batchCount |
protected 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 |
rollback |
protected boolean |
runPostModelLoadInit |
static String |
SHARD_METHOD_ACLID |
static String |
SHARD_METHOD_DBID |
protected int |
shardCount |
protected int |
shardInstance |
protected String |
shardMethod |
protected String |
shardTemplate |
protected TrackerState |
state |
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 TrackerStats |
trackerStats |
protected boolean |
transformContent |
protected Tracker.Type |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTracker(Properties p,
SOLRAPIClient client,
String coreName,
InformationServer informationServer,
Tracker.Type type) |
protected |
AbstractTracker(Tracker.Type type)
Default constructor, strictly for testing.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkShutdown() |
protected abstract void |
doTrack()
Subclasses must implement behaviour that completes the following steps, in order:
Purge
Reindex
Index
Track repository
|
String |
getAlfrescoVersion() |
int |
getMaxLiveSearchers() |
Properties |
getProps() |
boolean |
getRollback() |
Semaphore |
getRunLock() |
TrackerState |
getTrackerState() |
Tracker.Type |
getType() |
Semaphore |
getWriteLock() |
void |
invalidateState() |
void |
setRollback(boolean rollback) |
void |
setShutdown(boolean shutdown) |
void |
shutdown() |
void |
track()
|
protected void |
waitForAsynchronous()
Allows time for the scheduled asynchronous tasks to complete
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasMaintenance, maintenancepublic static final long TIME_STEP_32_DAYS_IN_MS
public static final long TIME_STEP_1_HR_IN_MS
public static final String SHARD_METHOD_ACLID
public static final String SHARD_METHOD_DBID
protected static final org.slf4j.Logger log
protected Properties props
protected SOLRAPIClient client
protected InformationServer infoSrv
protected String coreName
protected org.alfresco.service.cmr.repository.StoreRef storeRef
protected long batchCount
protected boolean isSlave
protected boolean isMaster
protected String alfrescoVersion
protected TrackerStats trackerStats
protected boolean runPostModelLoadInit
protected volatile TrackerState state
protected int shardCount
protected int shardInstance
protected String shardMethod
protected boolean transformContent
protected String shardTemplate
protected volatile boolean rollback
protected final Tracker.Type type
protected ThreadHandler threadHandler
protected AbstractTracker(Tracker.Type type)
protected AbstractTracker(Properties p, SOLRAPIClient client, String coreName, InformationServer informationServer, Tracker.Type type)
protected abstract void doTrack()
throws Throwable
Throwablepublic void track()
public boolean getRollback()
getRollback in interface Trackerpublic void setRollback(boolean rollback)
setRollback in interface Trackerpublic void invalidateState()
invalidateState in interface Trackerpublic TrackerState getTrackerState()
getTrackerState in interface Trackerprotected void waitForAsynchronous()
public int getMaxLiveSearchers()
protected void checkShutdown()
public void setShutdown(boolean shutdown)
setShutdown in interface Trackerpublic Semaphore getWriteLock()
getWriteLock in interface Trackerpublic Semaphore getRunLock()
public String getAlfrescoVersion()
getAlfrescoVersion in interface Trackerpublic Properties getProps()
public Tracker.Type getType()
Copyright © 2005–2020 Alfresco Software. All rights reserved.