public interface RequestExecution
Modifier and Type | Interface and Description |
---|---|
static class |
RequestExecution.Status
Status of the Request execution
|
Modifier and Type | Method and Description |
---|---|
RequestScheduleResponse |
convertToResponse()
Get @RequestScheduleResponse for this Request Execution
|
RequestScheduleResponse |
convertToResponseWithBody()
Get response with request body
|
void |
delete()
Delete Request Schedule entity
|
Integer |
getAuthenticatedUserId()
Get authenticated user
|
Batch |
getBatch()
Get the batch of requests along with batch settings
|
BatchRequest |
getBatchRequest(long batchId)
Get batch request with specified order id
|
Collection<Long> |
getBatchRequestRequestsIDs(long batchId)
Get the requests IDs for the batch
|
String |
getClusterName()
Cluster name to which request schedule belongs
|
String |
getCreateTime()
Get created time
|
String |
getCreateUser()
Get create user
|
String |
getDescription()
Get description of the request execution
|
Long |
getId()
Primary key of Request Execution
|
String |
getLastExecutionStatus()
Get status of the last batch of requests
|
String |
getRequestBody(Long batchId)
Get the request body for a batch request
|
Schedule |
getSchedule()
Get schedule for the execution
|
String |
getStatus()
Get status of schedule
|
String |
getUpdateTime()
Get updated time
|
String |
getUpdateUser()
Get update user
|
void |
persist()
Persist the Request Execution and schedule
|
void |
refresh()
Refresh entity from DB.
|
void |
setAuthenticatedUserId(Integer username)
Set authenticated user
|
void |
setBatch(Batch batch)
Set batch of requests and batch settings
|
void |
setCreateUser(String username)
Set create username
|
void |
setDescription(String description)
Set request execution description
|
void |
setLastExecutionStatus(String status)
Set datetime:status of last request that was executed
|
void |
setSchedule(Schedule schedule)
Set schedule for the execution
|
void |
setStatus(RequestExecution.Status status)
Set status of the schedule
|
void |
setUpdateUser(String username)
Set create username
|
void |
updateBatchRequest(long batchId,
BatchRequestResponse batchRequestResponse,
boolean statusOnly)
Updates batch request data
|
void |
updateStatus(RequestExecution.Status status)
Update status and save RequestExecution
|
Long getId()
String getClusterName()
Batch getBatch()
void setBatch(Batch batch)
Schedule getSchedule()
void setSchedule(Schedule schedule)
RequestScheduleResponse convertToResponse()
void persist()
void refresh()
void delete()
String getStatus()
void setDescription(String description)
String getDescription()
void setStatus(RequestExecution.Status status)
void setLastExecutionStatus(String status)
void setAuthenticatedUserId(Integer username)
void setCreateUser(String username)
void setUpdateUser(String username)
String getCreateTime()
String getUpdateTime()
Integer getAuthenticatedUserId()
String getCreateUser()
String getUpdateUser()
String getLastExecutionStatus()
RequestScheduleResponse convertToResponseWithBody()
Collection<Long> getBatchRequestRequestsIDs(long batchId)
BatchRequest getBatchRequest(long batchId)
void updateBatchRequest(long batchId, BatchRequestResponse batchRequestResponse, boolean statusOnly)
batchId
- order id of batch requestbatchRequestResponse
- statusOnly
- true if only status should be updatedvoid updateStatus(RequestExecution.Status status)
Copyright © 2022 Apache Software Foundation. All rights reserved.