Package com.atlassian.jira.index.request
Class ReindexRequestDaoImpl
java.lang.Object
com.atlassian.jira.index.request.ReindexRequestDaoImpl
- All Implemented Interfaces:
ReindexRequestDao
- Since:
- 6.4
-
Constructor Summary
Constructors -
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)
-
Constructor Details
-
ReindexRequestDaoImpl
-
-
Method Details
-
getRequestsWithStatus
Description copied from interface:ReindexRequestDaoRetrieves all reindex requests with the specified status, ordered by request time.- Specified by:
getRequestsWithStatusin interfaceReindexRequestDao- Parameters:
status- the status.- Returns:
- a list of requests.
-
writeRequest
- Specified by:
writeRequestin interfaceReindexRequestDao
-
getComponentsForRequest
Description copied from interface:ReindexRequestDaoRetrieves components for a reindex request.- Specified by:
getComponentsForRequestin interfaceReindexRequestDao- Parameters:
requestId- the ID of the request.- Returns:
- components for the request. Returns empty list if the request does not exist.
-
writeComponent
- Specified by:
writeComponentin interfaceReindexRequestDao
-
removeComponents
public void removeComponents(long requestId) Description copied from interface:ReindexRequestDaoRemove all components of a reindex request.- Specified by:
removeComponentsin interfaceReindexRequestDao- Parameters:
requestId- the reindex request ID.
-
findRequestById
Description copied from interface:ReindexRequestDaoFinds a request by ID. Returns null if not found.- Specified by:
findRequestByIdin interfaceReindexRequestDao- Parameters:
requestId- the ID of the request to find.- Returns:
- the request, or null if not found.
-
removeAllPendingRequests
public void removeAllPendingRequests()Description copied from interface:ReindexRequestDaoClear any pending requests.- Specified by:
removeAllPendingRequestsin interfaceReindexRequestDao
-