Package com.atlassian.jira.index.request
Interface ReindexRequestDao
- All Known Implementing Classes:
ReindexRequestDaoImpl
public interface ReindexRequestDao
DAO for reading reindex requests.
- Since:
- 6.4
-
Method Summary
Modifier and TypeMethodDescriptionfindRequestById(long requestId) Finds a request by ID.getComponentsForRequest(long requestId) Retrieves components for a reindex request.getRequestsWithStatus(ReindexStatus status) Retrieves all reindex requests with the specified status, ordered by request time.voidClear any pending requests.voidremoveComponents(long requestId) Remove all components of a reindex request.writeComponent(ReindexComponent component) writeRequest(ReindexRequestBase request)
-
Method Details
-
getRequestsWithStatus
Retrieves all reindex requests with the specified status, ordered by request time.- Parameters:
status- the status.- Returns:
- a list of requests.
-
getComponentsForRequest
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
-
writeComponent
-
removeComponents
void removeComponents(long requestId) Remove all components of a reindex request.- Parameters:
requestId- the reindex request ID.
-
findRequestById
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.
-