Class ReindexJob


  • public class ReindexJob
    extends Object
    Contains details of an in progress or completed full reindex.
    • Method Detail

      • getErrorMessage

        public String getErrorMessage()
        Returns:
        If errors are present, this is the first non-empty message found in the errors list.
      • getRatePerSecond

        public String getRatePerSecond()
        Returns:
        The number of items processed per second
      • getQueueProcessTime

        public String getQueueProcessTime()
        Returns:
        The amount of time it took to process all of the items in the queue
      • getQueueLoadTime

        public String getQueueLoadTime()
        Returns:
        The amount of time it took to load the reindex queue
      • addError

        public void addError​(String errorMsg,
                             @Nullable
                             String className,
                             @Nullable
                             Instant errorTime)
        Adds an error to the error list for this Reindex job.
        Parameters:
        errorMsg - The error message
        className - The exception class name
        errorTime - The approximate time the error occurred.
      • getId

        public String getId()
      • getIndexableType

        public String getIndexableType()
        The IndexableType of this job (e.g. Customer, Product, etc)
      • getName

        public String getName()
        The display name which will identify this job to admin users.
      • getAuthor

        public String getAuthor()
        The user that initiated this reindex process.
      • getStartTime

        public Instant getStartTime()
        The start time of the process
      • getEndTime

        public Instant getEndTime()
        The completion time of the process
      • getLastUpdated

        public Instant getLastUpdated()
        The last update time of the process
      • getFinishedLoadingQueueTime

        public Instant getFinishedLoadingQueueTime()
        The time taken to load the queue for this job. This is not set until the queue is completely loaded.
      • getFinishedProcessingQueueTime

        public Instant getFinishedProcessingQueueTime()
        The instant in time this queue was finished processing. This is not set until all items in the queue have been processed.
      • getExpectedCount

        public Long getExpectedCount()
        The expected number of items to be processed (May be an estimate, such as with Products)
      • getProcessedCount

        public Long 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

        public Integer getNodeCount()
        The number of nodes involved in the reindex process. If this is not a distributed reindex, this will always be 1.
      • getThreadCount

        public Integer getThreadCount()
        The total number of threads used across all nodes.
      • getErrors

        public List<ReindexErrorDetails> getErrors()
        A list of errors that may have occurred during the reindex process. This will be null if no errors have occurred.
      • setId

        public void setId​(String id)
      • setIndexableType

        public void setIndexableType​(String indexableType)
        The IndexableType of this job (e.g. Customer, Product, etc)
      • setName

        public void setName​(String name)
        The display name which will identify this job to admin users.
      • setAuthor

        public void setAuthor​(String author)
        The user that initiated this reindex process.
      • setStartTime

        public void setStartTime​(Instant startTime)
        The start time of the process
      • setEndTime

        public void setEndTime​(Instant endTime)
        The completion time of the process
      • setLastUpdated

        public void setLastUpdated​(Instant lastUpdated)
        The last update time of the process
      • setFinishedLoadingQueueTime

        public void setFinishedLoadingQueueTime​(Instant finishedLoadingQueueTime)
        The time taken to load the queue for this job. This is not set until the queue is completely loaded.
      • setFinishedProcessingQueueTime

        public void setFinishedProcessingQueueTime​(Instant finishedProcessingQueueTime)
        The instant in time this queue was finished processing. This is not set until all items in the queue have been processed.
      • setExpectedCount

        public void setExpectedCount​(Long expectedCount)
        The expected number of items to be processed (May be an estimate, such as with Products)
      • setProcessedCount

        public void setProcessedCount​(Long processedCount)
        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

        public void setNodeCount​(Integer nodeCount)
        The number of nodes involved in the reindex process. If this is not a distributed reindex, this will always be 1.
      • setThreadCount

        public void setThreadCount​(Integer threadCount)
        The total number of threads used across all nodes.
      • setErrors

        public void setErrors​(List<ReindexErrorDetails> errors)
        A list of errors that may have occurred during the reindex process. This will be null if no errors have occurred.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object