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)
ReindexRequestDaogetRequestsWithStatus in interface ReindexRequestDaostatus - the status.@Nonnull public ReindexRequestBase writeRequest(@Nonnull ReindexRequestBase request)
writeRequest in interface ReindexRequestDao@Nonnull public List<ReindexComponent> getComponentsForRequest(long requestId)
ReindexRequestDaogetComponentsForRequest in interface ReindexRequestDaorequestId - the ID of the request.@Nonnull public ReindexComponent writeComponent(@Nonnull ReindexComponent component)
writeComponent in interface ReindexRequestDaopublic void removeComponents(long requestId)
ReindexRequestDaoremoveComponents in interface ReindexRequestDaorequestId - the reindex request ID.@Nullable public ReindexRequestBase findRequestById(long requestId)
ReindexRequestDaofindRequestById in interface ReindexRequestDaorequestId - the ID of the request to find.public void removeAllPendingRequests()
ReindexRequestDaoremoveAllPendingRequests in interface ReindexRequestDaoCopyright © 2002-2021 Atlassian. All Rights Reserved.