public abstract class ActivatableTracker extends AbstractTracker
Tracker.Type| Modifier and Type | Field and Description |
|---|---|
protected static AtomicBoolean |
IS_ENABLED |
alfrescoVersion, batchCount, client, coreName, infoSrv, isMaster, isSlave, props, rollback, rollbackCausedBy, 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, trackerId, trackerStats, transformContent, type| Modifier | Constructor and Description |
|---|---|
protected |
ActivatableTracker(Properties properties,
SOLRAPIClient client,
String coreName,
InformationServer informationServer,
Tracker.Type type) |
protected |
ActivatableTracker(Tracker.Type type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearScheduledMaintenanceWork()
Cleans up the scheduled maintenance work collected by this tracker.
|
void |
disable()
Disables this tracker instance.
|
void |
enable()
Enables this tracker instance.
|
boolean |
isDisabled() |
boolean |
isEnabled() |
protected void |
logAndClear(Collection<Long> values,
String kind)
Logs out the content of the input collection.
|
void |
track()
Template method - subclasses must implement the
Tracker-specific indexing
by implementing the abstract method AbstractTracker.doTrack(). |
checkShutdown, doTrack, getAlfrescoVersion, getMaxLiveSearchers, getProps, getRollback, getRollbackCausedBy, getRunLock, getTrackerState, getType, getWriteLock, invalidateState, isAlreadyInShutDownMode, setRollback, setShutdown, shutdown, waitForAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasMaintenance, maintenanceprotected static final AtomicBoolean IS_ENABLED
protected ActivatableTracker(Tracker.Type type)
protected ActivatableTracker(Properties properties, SOLRAPIClient client, String coreName, InformationServer informationServer, Tracker.Type type)
public final void disable()
public final void enable()
public void track()
AbstractTrackerTracker-specific indexing
by implementing the abstract method AbstractTracker.doTrack().track in interface Trackertrack in class AbstractTrackerpublic boolean isEnabled()
public boolean isDisabled()
protected void clearScheduledMaintenanceWork()
protected void logAndClear(Collection<Long> values, String kind)
values - the collection which (in case is not empty) contains the identifiers (e.g. txid, aclid) the system
is going to clear.kind - the kind of identifier (e.g. Transaction, Node ID, ACL ID) in the input collection.Copyright © 2005–2020 Alfresco Software. All rights reserved.