public class AclTracker extends AbstractTracker
Tracker implementation.Tracker.Type| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
log |
alfrescoVersion, batchCount, client, coreName, infoSrv, isMaster, isSlave, 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 |
|---|
AclTracker(Properties p,
SOLRAPIClient client,
String coreName,
InformationServer informationServer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAclChangeSetToIndex(Long aclChangeSetToIndex) |
void |
addAclChangeSetToPurge(Long aclChangeSetToPurge) |
void |
addAclChangeSetToReindex(Long aclChangeSetToReindex) |
void |
addAclToIndex(Long aclToIndex) |
void |
addAclToPurge(Long aclToPurge) |
void |
addAclToReindex(Long aclToReindex) |
AclReport |
checkAcl(Long aclid) |
IndexHealthReport |
checkIndex(Long toTx,
Long toAclTx,
Long fromTime,
Long toTime) |
protected void |
doTrack()
Subclasses must implement behaviour that completes the following steps, in order:
Purge
Reindex
Index
Track repository
|
List<Long> |
getAclsForDbAclTransaction(Long acltxid) |
protected Long |
getChangeSetFromCommitTime(BoundedDeque<AclChangeSet> changeSetsFound,
long lastGoodChangeSetCommitTimeInIndex) |
List<Node> |
getFullNodesForDbTransaction(Long txid) |
protected AclChangeSets |
getSomeAclChangeSets(BoundedDeque<AclChangeSet> changeSetsFound,
Long fromCommitTime,
long timeStep,
int maxResults,
long endTime) |
boolean |
hasMaintenance() |
protected void |
indexAcl(List<AclReaders> aclReaderList,
boolean overwrite) |
protected void |
indexAclChangeSets() |
protected void |
indexAcls() |
void |
invalidateState() |
void |
maintenance() |
protected void |
purgeAclChangeSets() |
protected void |
purgeAcls() |
protected void |
reindexAclChangeSets() |
protected void |
reindexAcls() |
protected void |
trackAclChangeSets() |
protected void |
trackRepository() |
checkShutdown, getAlfrescoVersion, getMaxLiveSearchers, getProps, getRollback, getRunLock, getTrackerState, getType, getWriteLock, setRollback, setShutdown, shutdown, track, waitForAsynchronouspublic AclTracker(Properties p, SOLRAPIClient client, String coreName, InformationServer informationServer)
protected void doTrack()
throws Throwable
AbstractTrackerdoTrack in class AbstractTrackerThrowablepublic boolean hasMaintenance()
protected void indexAclChangeSets()
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionprotected void indexAcls()
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionprotected void reindexAclChangeSets()
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionprotected void reindexAcls()
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionprotected void purgeAclChangeSets()
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionprotected void purgeAcls()
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic void addAclChangeSetToReindex(Long aclChangeSetToReindex)
public void addAclChangeSetToIndex(Long aclChangeSetToIndex)
public void addAclChangeSetToPurge(Long aclChangeSetToPurge)
public void addAclToReindex(Long aclToReindex)
public void addAclToIndex(Long aclToIndex)
public void addAclToPurge(Long aclToPurge)
protected void trackRepository()
throws IOException,
org.alfresco.httpclient.AuthenticationException,
org.json.JSONException
IOExceptionorg.alfresco.httpclient.AuthenticationExceptionorg.json.JSONExceptionprotected Long getChangeSetFromCommitTime(BoundedDeque<AclChangeSet> changeSetsFound, long lastGoodChangeSetCommitTimeInIndex)
changeSetsFound - BoundedDequelastGoodChangeSetCommitTimeInIndex - longprotected AclChangeSets getSomeAclChangeSets(BoundedDeque<AclChangeSet> changeSetsFound, Long fromCommitTime, long timeStep, int maxResults, long endTime) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionprotected void indexAcl(List<AclReaders> aclReaderList, boolean overwrite) throws IOException
aclReaderList - Listoverwrite - booleanIOExceptionpublic IndexHealthReport checkIndex(Long toTx, Long toAclTx, Long fromTime, Long toTime) throws org.alfresco.httpclient.AuthenticationException, IOException, org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic List<Long> getAclsForDbAclTransaction(Long acltxid)
acltxid - Longprotected void trackAclChangeSets()
throws org.alfresco.httpclient.AuthenticationException,
IOException,
org.json.JSONException
org.alfresco.httpclient.AuthenticationExceptionIOExceptionorg.json.JSONExceptionpublic void invalidateState()
invalidateState in interface TrackerinvalidateState in class AbstractTrackerCopyright © 2005–2020 Alfresco Software. All rights reserved.