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
ConstructorsModifierConstructorDescriptionprotected
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 Summary
Modifier and TypeMethodDescriptionvoid
Adds an error to the error list for this Reindex job.static ReindexJob.ReindexJobBuilder
builder()
protected boolean
boolean
The 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.int
hashCode()
void
The user that initiated this reindex process.void
setEndTime
(Instant endTime) The completion time of the processvoid
setErrors
(List<ReindexErrorDetails> errors) A list of errors that may have occurred during the reindex process.void
setExpectedCount
(Long expectedCount) The expected number of items to be processed (May be an estimate, such as with Products)void
setFinishedLoadingQueueTime
(Instant finishedLoadingQueueTime) The time taken to load the queue for this job.void
setFinishedProcessingQueueTime
(Instant finishedProcessingQueueTime) The instant in time this queue was finished processing.void
void
setIndexableType
(String indexableType) The IndexableType of this job (e.g.void
setLastUpdated
(Instant lastUpdated) The last update time of the processvoid
The display name which will identify this job to admin users.void
setNodeCount
(Integer nodeCount) The number of nodes involved in the reindex process.void
setProcessedCount
(Long processedCount) The number of items processed during the full reindex.void
setStartTime
(Instant startTime) The start time of the processvoid
setStatus
(ReindexStatus status) The current status of the reindex process.void
setThreadCount
(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
errors
are present, this is the first non-emptymessage
found 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
-