Class ReindexJob
java.lang.Object
com.broadleafcommerce.search.index.core.domain.ReindexJob
Contains details of an in progress or completed full reindex.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReindexJob(String id, String indexableType, String name, String author, Instant startTime, Instant endTime, Instant lastUpdated, Instant finishedLoadingQueueTime, Instant finishedProcessingQueueTime, Long expectedCount, Long processedCount, Integer nodeCount, Integer threadCount, ReindexStatus status, List<ReindexErrorDetails> errors) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an error to the error list for this Reindex job.static ReindexJob.ReindexJobBuilderbuilder()protected booleanbooleanThe user that initiated this reindex process.The completion time of the processA list of errors that may have occurred during the reindex process.The expected number of items to be processed (May be an estimate, such as with Products)The time taken to load the queue for this job.The instant in time this queue was finished processing.getId()The IndexableType of this job (e.g.The last update time of the processgetName()The display name which will identify this job to admin users.The number of nodes involved in the reindex process.The number of items processed during the full reindex.The start time of the processThe current status of the reindex process.The total number of threads used across all nodes.inthashCode()voidThe user that initiated this reindex process.voidsetEndTime(Instant endTime) The completion time of the processvoidsetErrors(List<ReindexErrorDetails> errors) A list of errors that may have occurred during the reindex process.voidsetExpectedCount(Long expectedCount) The expected number of items to be processed (May be an estimate, such as with Products)voidsetFinishedLoadingQueueTime(Instant finishedLoadingQueueTime) The time taken to load the queue for this job.voidsetFinishedProcessingQueueTime(Instant finishedProcessingQueueTime) The instant in time this queue was finished processing.voidvoidsetIndexableType(String indexableType) The IndexableType of this job (e.g.voidsetLastUpdated(Instant lastUpdated) The last update time of the processvoidThe display name which will identify this job to admin users.voidsetNodeCount(Integer nodeCount) The number of nodes involved in the reindex process.voidsetProcessedCount(Long processedCount) The number of items processed during the full reindex.voidsetStartTime(Instant startTime) The start time of the processvoidsetStatus(ReindexStatus status) The current status of the reindex process.voidsetThreadCount(Integer threadCount) The total number of threads used across all nodes.toString()
-
Constructor Details
-
ReindexJob
public ReindexJob() -
ReindexJob
protected ReindexJob(String id, String indexableType, String name, String author, Instant startTime, Instant endTime, Instant lastUpdated, Instant finishedLoadingQueueTime, Instant finishedProcessingQueueTime, Long expectedCount, Long processedCount, Integer nodeCount, Integer threadCount, ReindexStatus status, List<ReindexErrorDetails> errors)
-
-
Method Details
-
getErrorMessage
- Returns:
- If
errorsare present, this is the first non-emptymessagefound in the errors list.
-
getRatePerSecond
- Returns:
- The number of items processed per second
-
getQueueProcessTime
- Returns:
- The amount of time it took to process all of the items in the queue
-
getQueueLoadTime
- Returns:
- The amount of time it took to load the reindex queue
-
addError
Adds an error to the error list for this Reindex job.- Parameters:
errorMsg- The error messageclassName- The exception class nameerrorTime- The approximate time the error occurred.
-
builder
-
getId
-
getIndexableType
The IndexableType of this job (e.g. Customer, Product, etc) -
getName
The display name which will identify this job to admin users. -
getAuthor
The user that initiated this reindex process. -
getStartTime
The start time of the process -
getEndTime
The completion time of the process -
getLastUpdated
The last update time of the process -
getFinishedLoadingQueueTime
The time taken to load the queue for this job. This is not set until the queue is completely loaded. -
getFinishedProcessingQueueTime
The instant in time this queue was finished processing. This is not set until all items in the queue have been processed. -
getExpectedCount
The expected number of items to be processed (May be an estimate, such as with Products) -
getProcessedCount
The number of items processed during the full reindex. In the case of a completed process, this is the total number of items processed during the reindex. For in progress reindexing, this is regularly updated. -
getNodeCount
The number of nodes involved in the reindex process. If this is not a distributed reindex, this will always be 1. -
getThreadCount
The total number of threads used across all nodes. -
getStatus
The current status of the reindex process.- See Also:
-
getErrors
A list of errors that may have occurred during the reindex process. This will be null if no errors have occurred. -
setId
-
setIndexableType
The IndexableType of this job (e.g. Customer, Product, etc) -
setName
The display name which will identify this job to admin users. -
setAuthor
The user that initiated this reindex process. -
setStartTime
The start time of the process -
setEndTime
The completion time of the process -
setLastUpdated
The last update time of the process -
setFinishedLoadingQueueTime
The time taken to load the queue for this job. This is not set until the queue is completely loaded. -
setFinishedProcessingQueueTime
The instant in time this queue was finished processing. This is not set until all items in the queue have been processed. -
setExpectedCount
The expected number of items to be processed (May be an estimate, such as with Products) -
setProcessedCount
The number of items processed during the full reindex. In the case of a completed process, this is the total number of items processed during the reindex. For in progress reindexing, this is regularly updated. -
setNodeCount
The number of nodes involved in the reindex process. If this is not a distributed reindex, this will always be 1. -
setThreadCount
The total number of threads used across all nodes. -
setStatus
The current status of the reindex process.- See Also:
-
setErrors
A list of errors that may have occurred during the reindex process. This will be null if no errors have occurred. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-