Class ReIndexJob
java.lang.Object
com.atlassian.confluence.index.status.ReIndexJob
- All Implemented Interfaces:
Serializable
Hold data about a re-index in Confluence
- Since:
- 7.6.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSimple class to hold progress of either rebuilding index or index propagation -
Constructor Summary
ConstructorsConstructorDescriptionReIndexJob(Instant startTime, long totalCount) ReIndexJob(Instant startTime, long totalCount, List<String> spaceKeys) ReIndexJob(List<String> spaceKeys) -
Method Summary
Modifier and TypeMethodDescription@Nullable InstantgetId()intgetNodeStatus(String nodeId) longComputes the progress percentage for reindexing.@Nullable ReIndexJob.ProgressgetStage()booleanbooleanbooleanisFailed()booleanvoidsetAcknowledged(boolean acknowledged) voidsetCreatedBy(ConfluenceUser createdBy) voidsetFinishTime(Instant finishTime) voidsetIndexJournalEntryIdMap(Map<String, Long> indexJournalEntryIdMap) voidsetIndexRestoreCheckCount(int newCount) voidsetLastRebuildingUpdate(Instant lastRebuildingUpdate) voidsetNodeStatuses(Collection<ReIndexNodeStatus> nodeStatuses) voidsetPropagatingProgress(ReIndexJob.Progress propagatingProgress) voidsetRebuildingProgress(ReIndexJob.Progress rebuildingProgress) voidsetReIndexOptions(EnumSet<ReIndexOption> reIndexOptions) voidsetSourceNodeId(String sourceNodeId) voidsetStage(ReIndexStage stage) voidsetStartTime(Instant startTime)
-
Constructor Details
-
ReIndexJob
public ReIndexJob() -
ReIndexJob
-
ReIndexJob
- Since:
- 8.3.0
-
ReIndexJob
- Since:
- 8.3.0
-
-
Method Details
-
getStartTime
-
setStartTime
-
getFinishTime
-
setFinishTime
-
getStage
-
setStage
-
isAcknowledged
public boolean isAcknowledged() -
setAcknowledged
public void setAcknowledged(boolean acknowledged) -
getRebuildingProgress
-
setRebuildingProgress
-
getPropagatingProgress
-
setPropagatingProgress
-
getNodeStatuses
-
getNodeStatus
-
setNodeStatuses
-
getLastRebuildingUpdate
-
setLastRebuildingUpdate
-
getId
-
getCreatedBy
-
setCreatedBy
-
getDuration
-
setIndexRestoreCheckCount
public void setIndexRestoreCheckCount(int newCount) -
getIndexRestoreCheckCount
public int getIndexRestoreCheckCount() -
getSourceNodeId
-
setSourceNodeId
-
getIndexJournalEntryIdMap
-
setIndexJournalEntryIdMap
-
getSpaceKeys
- Since:
- 8.3.0
-
getReIndexOptions
- Since:
- 9.4.0
-
setReIndexOptions
-
isSiteReindex
public boolean isSiteReindex()- Since:
- 8.3.0
-
isComplete
public boolean isComplete() -
isFailed
public boolean isFailed() -
getProgressPercentage
public long getProgressPercentage()Computes the progress percentage for reindexing. Rebuild is always performed but propagation is only required when the search platform is Lucene, the cluster has more than one node, and we're performing a site reindex. When propagation is required, rebuild and propagation each account for 50% of the total progress.- Returns:
- the progress percentage as a long. For example 33 means 33%.
- Since:
- 9.0
-