public class ReindexRequestDaoImpl extends Object implements ReindexRequestDao
Constructor and Description |
---|
ReindexRequestDaoImpl(EntityEngine entityEngine) |
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) |
public ReindexRequestDaoImpl(EntityEngine entityEngine)
@Nonnull public List<ReindexRequestBase> getRequestsWithStatus(@Nonnull ReindexStatus status)
ReindexRequestDao
getRequestsWithStatus
in interface ReindexRequestDao
status
- the status.@Nonnull public ReindexRequestBase writeRequest(@Nonnull ReindexRequestBase request)
writeRequest
in interface ReindexRequestDao
@Nonnull public List<ReindexComponent> getComponentsForRequest(long requestId)
ReindexRequestDao
getComponentsForRequest
in interface ReindexRequestDao
requestId
- the ID of the request.@Nonnull public ReindexComponent writeComponent(@Nonnull ReindexComponent component)
writeComponent
in interface ReindexRequestDao
public void removeComponents(long requestId)
ReindexRequestDao
removeComponents
in interface ReindexRequestDao
requestId
- the reindex request ID.@Nullable public ReindexRequestBase findRequestById(long requestId)
ReindexRequestDao
findRequestById
in interface ReindexRequestDao
requestId
- the ID of the request to find.public void removeAllPendingRequests()
ReindexRequestDao
removeAllPendingRequests
in interface ReindexRequestDao
Copyright © 2002-2021 Atlassian. All Rights Reserved.