public class ShardStatePublisher extends AbstractTracker
MetadataTracker.
As consequence of that, this class contains only the members needed for obtaining a valid
ShardState that can be periodically communicated to Alfresco.Tracker.TypealfrescoVersion, 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| Constructor and Description |
|---|
ShardStatePublisher(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
|
TrackerState |
getTrackerState()
When running in a slave mode, we need to recreate the tracker state every time.
|
boolean |
hasMaintenance() |
boolean |
isOnMasterOrStandalone()
Returns true if the hosting core is master or standalone.
|
void |
maintenance() |
checkShutdown, getAlfrescoVersion, getMaxLiveSearchers, getProps, getRollback, getRollbackCausedBy, getRunLock, getType, getWriteLock, invalidateState, isAlreadyInShutDownMode, setRollback, setShutdown, shutdown, track, waitForAsynchronouspublic ShardStatePublisher(Properties p, SOLRAPIClient client, String coreName, InformationServer informationServer)
protected void doTrack()
AbstractTrackerdoTrack in class AbstractTrackerpublic void maintenance()
public boolean hasMaintenance()
public TrackerState getTrackerState()
getTrackerState in interface TrackergetTrackerState in class AbstractTrackerTrackerState.public boolean isOnMasterOrStandalone()
Copyright © 2005–2020 Alfresco Software. All rights reserved.