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)
Returns requests that are scheduled to run given command
|
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> |
getRequestsByBusinessKey(String businessKey,
List<STATUS> statuses,
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> |
getRequestsByCommand(String command,
List<STATUS> statuses,
QueryContext queryContext)
Returns requests that are scheduled to run given command
|
List<RequestInfo> |
getRequestsByDeployment(String deploymentId,
List<STATUS> statuses,
QueryContext queryContext)
Returns requests by deployment id
|
List<RequestInfo> |
getRequestsByProcessInstance(Long processInstanceId,
List<STATUS> statuses,
QueryContext queryContext)
Returns requests by process instance 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> getRequestsByBusinessKey(String businessKey, List<STATUS> statuses, 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 requeststatuses
- filter by job statusqueryContext
- paging and sorting controlsList<RequestInfo> getRequestByCommand(String command, QueryContext queryContext)
command
- command configured in the requestqueryContext
- paging and sorting controlscommand
List<RequestInfo> getRequestsByCommand(String command, List<STATUS> statuses, QueryContext queryContext)
command
- command configured in the requeststatuses
- filter by job statusqueryContext
- paging and sorting controlscommand
List<RequestInfo> getRequestsByDeployment(String deploymentId, List<STATUS> statuses, QueryContext queryContext)
deploymentId
- deployment id from process execution contextstatuses
- filter by job statusqueryContext
- paging and sorting controlsList<RequestInfo> getRequestsByProcessInstance(Long processInstanceId, List<STATUS> statuses, QueryContext queryContext)
processInstanceId
- process instance id from process execution contextstatuses
- filter by job statusqueryContext
- paging and sorting controlsList<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–2017 JBoss by Red Hat. All rights reserved.