public interface ExecutorQueryService
Modifier and Type | Method and Description |
---|---|
List<ErrorInfo> |
getAllErrors(QueryContext queryContext) |
List<RequestInfo> |
getAllRequests(QueryContext queryContext) |
List<RequestInfo> |
getCancelledRequests(QueryContext queryContext) |
List<RequestInfo> |
getCompletedRequests(QueryContext queryContext) |
List<ErrorInfo> |
getErrorsByRequestId(Long id) |
List<RequestInfo> |
getFutureQueuedRequests(QueryContext queryContext) |
List<RequestInfo> |
getInErrorRequests(QueryContext queryContext) |
List<RequestInfo> |
getPendingRequestById(Long id) |
List<RequestInfo> |
getPendingRequests(QueryContext queryContext) |
List<RequestInfo> |
getQueuedRequests(QueryContext queryContext) |
List<RequestInfo> |
getRequestByBusinessKey(String businessKey,
QueryContext queryContext)
Returns requests identified by
businessKey usually it should be only one with given
business key but it does not have to as same business key requests can be processed sequentially and
thus might be in different statuses. |
List<RequestInfo> |
getRequestByCommand(String command,
QueryContext queryContext) |
RequestInfo |
getRequestById(Long id) |
RequestInfo |
getRequestForProcessing()
Dedicated method for handling special case that is get the request for processing.
|
RequestInfo |
getRequestForProcessing(Long requestId)
Dedicated method for handling special case that is get the request for processing by id.
|
List<RequestInfo> |
getRequestsByStatus(List<STATUS> statuses,
QueryContext queryContext) |
List<RequestInfo> |
getRunningRequests(QueryContext queryContext) |
List<RequestInfo> getPendingRequests(QueryContext queryContext)
List<RequestInfo> getPendingRequestById(Long id)
id
- unique id of the requestid
RequestInfo getRequestById(Long id)
id
- unique id of the requestid
regardless of its statusList<RequestInfo> getRequestByBusinessKey(String businessKey, QueryContext queryContext)
businessKey
usually it should be only one with given
business key but it does not have to as same business key requests can be processed sequentially and
thus might be in different statuses.businessKey
- business key of the requestList<RequestInfo> getRequestByCommand(String command, QueryContext queryContext)
command
- command configured in the requestcommand
List<ErrorInfo> getErrorsByRequestId(Long id)
id
- unique id of the requestList<RequestInfo> getQueuedRequests(QueryContext queryContext)
List<RequestInfo> getCompletedRequests(QueryContext queryContext)
List<RequestInfo> getInErrorRequests(QueryContext queryContext)
List<RequestInfo> getCancelledRequests(QueryContext queryContext)
List<ErrorInfo> getAllErrors(QueryContext queryContext)
List<RequestInfo> getAllRequests(QueryContext queryContext)
List<RequestInfo> getRunningRequests(QueryContext queryContext)
List<RequestInfo> getFutureQueuedRequests(QueryContext queryContext)
List<RequestInfo> getRequestsByStatus(List<STATUS> statuses, QueryContext queryContext)
statuses
- statuses that requests should be inRequestInfo getRequestForProcessing()
RequestInfo getRequestForProcessing(Long requestId)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.