Interface ReindexRequestDao

All Known Implementing Classes:
ReindexRequestDaoImpl

public interface ReindexRequestDao
DAO for reading reindex requests.
Since:
6.4
  • Method Details

    • getRequestsWithStatus

      @Nonnull List<ReindexRequestBase> getRequestsWithStatus(@Nonnull ReindexStatus status)
      Retrieves all reindex requests with the specified status, ordered by request time.
      Parameters:
      status - the status.
      Returns:
      a list of requests.
    • getComponentsForRequest

      @Nonnull List<ReindexComponent> getComponentsForRequest(long requestId)
      Retrieves components for a reindex request.
      Parameters:
      requestId - the ID of the request.
      Returns:
      components for the request. Returns empty list if the request does not exist.
    • writeRequest

      @Nonnull ReindexRequestBase writeRequest(@Nonnull ReindexRequestBase request)
    • writeComponent

      @Nonnull ReindexComponent writeComponent(@Nonnull ReindexComponent component)
    • removeComponents

      void removeComponents(long requestId)
      Remove all components of a reindex request.
      Parameters:
      requestId - the reindex request ID.
    • findRequestById

      @Nullable ReindexRequestBase findRequestById(long requestId)
      Finds a request by ID. Returns null if not found.
      Parameters:
      requestId - the ID of the request to find.
      Returns:
      the request, or null if not found.
    • removeAllPendingRequests

      void removeAllPendingRequests()
      Clear any pending requests.