public class

ReindexRequestDaoImpl

extends Object
implements ReindexRequestDao
java.lang.Object
   ↳ com.atlassian.jira.index.request.ReindexRequestDaoImpl

Summary

Public Constructors
ReindexRequestDaoImpl(EntityEngine entityEngine)
Public Methods
@Nullable ReindexRequestBase findRequestById(long requestId)
Finds a request by ID.
@Nonnull List<ReindexComponent> getComponentsForRequest(long requestId)
Retrieves components for a reindex request.
@Nonnull 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.
@Nonnull ReindexComponent writeComponent(ReindexComponent component)
@Nonnull ReindexRequestBase writeRequest(ReindexRequestBase request)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.index.request.ReindexRequestDao

Public Constructors

public ReindexRequestDaoImpl (EntityEngine entityEngine)

Public Methods

@Nullable public ReindexRequestBase findRequestById (long requestId)

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.

@Nonnull public List<ReindexComponent> getComponentsForRequest (long requestId)

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.

@Nonnull public List<ReindexRequestBase> getRequestsWithStatus (ReindexStatus status)

Retrieves all reindex requests with the specified status, ordered by request time.

Parameters
status the status.
Returns
  • a list of requests.

public void removeAllPendingRequests ()

Clear any pending requests.

public void removeComponents (long requestId)

Remove all components of a reindex request.

Parameters
requestId the reindex request ID.

@Nonnull public ReindexComponent writeComponent (ReindexComponent component)

@Nonnull public ReindexRequestBase writeRequest (ReindexRequestBase request)