public interface ReindexRequestDao
Modifier and Type | Method and Description |
---|---|
ReindexRequestBase |
findRequestById(long requestId)
Finds a request by ID.
|
List<ReindexComponent> |
getComponentsForRequest(long requestId)
Retrieves components for a reindex request.
|
List<ReindexRequestBase> |
getRequestsWithStatus(ReindexStatus status)
Retrieves all reindex requests with the specified status, ordered by request time.
|
void |
removeAllPendingRequests()
Clear any pending requests.
|
void |
removeComponents(long requestId)
Remove all components of a reindex request.
|
ReindexComponent |
writeComponent(ReindexComponent component) |
ReindexRequestBase |
writeRequest(ReindexRequestBase request) |
@Nonnull List<ReindexRequestBase> getRequestsWithStatus(@Nonnull ReindexStatus status)
status
- the status.@Nonnull List<ReindexComponent> getComponentsForRequest(long requestId)
requestId
- the ID of the request.@Nonnull ReindexRequestBase writeRequest(@Nonnull ReindexRequestBase request)
@Nonnull ReindexComponent writeComponent(@Nonnull ReindexComponent component)
void removeComponents(long requestId)
requestId
- the reindex request ID.@Nullable ReindexRequestBase findRequestById(long requestId)
requestId
- the ID of the request to find.void removeAllPendingRequests()
Copyright © 2002-2016 Atlassian. All Rights Reserved.