public class RequestExecutionImpl extends Object implements RequestExecution
RequestExecution.Status| Constructor and Description |
|---|
RequestExecutionImpl(Cluster cluster,
Batch batch,
Schedule schedule,
com.google.inject.Injector injector) |
RequestExecutionImpl(Cluster cluster,
RequestScheduleEntity requestScheduleEntity,
com.google.inject.Injector injector) |
| 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
|
public RequestExecutionImpl(Cluster cluster, Batch batch, @Nullable Schedule schedule, com.google.inject.Injector injector)
public RequestExecutionImpl(Cluster cluster, RequestScheduleEntity requestScheduleEntity, com.google.inject.Injector injector)
public Long getId()
RequestExecutiongetId in interface RequestExecutionpublic String getClusterName()
RequestExecutiongetClusterName in interface RequestExecutionpublic Batch getBatch()
RequestExecutiongetBatch in interface RequestExecutionpublic void setBatch(Batch batch)
RequestExecutionsetBatch in interface RequestExecutionpublic Schedule getSchedule()
RequestExecutiongetSchedule in interface RequestExecutionpublic void setSchedule(Schedule schedule)
RequestExecutionsetSchedule in interface RequestExecutionpublic RequestScheduleResponse convertToResponse()
RequestExecutionconvertToResponse in interface RequestExecutionpublic void persist()
RequestExecutionpersist in interface RequestExecutionpublic void refresh()
RequestExecutionrefresh in interface RequestExecutionpublic void delete()
RequestExecutiondelete in interface RequestExecutionpublic String getStatus()
RequestExecutiongetStatus in interface RequestExecutionpublic void setDescription(String description)
RequestExecutionsetDescription in interface RequestExecutionpublic String getDescription()
RequestExecutiongetDescription in interface RequestExecutionpublic void setStatus(RequestExecution.Status status)
RequestExecutionsetStatus in interface RequestExecutionpublic void setLastExecutionStatus(String status)
RequestExecutionsetLastExecutionStatus in interface RequestExecutionpublic void setAuthenticatedUserId(Integer username)
RequestExecutionsetAuthenticatedUserId in interface RequestExecutionpublic void setCreateUser(String username)
RequestExecutionsetCreateUser in interface RequestExecutionpublic void setUpdateUser(String username)
RequestExecutionsetUpdateUser in interface RequestExecutionpublic String getCreateTime()
RequestExecutiongetCreateTime in interface RequestExecutionpublic String getUpdateTime()
RequestExecutiongetUpdateTime in interface RequestExecutionpublic Integer getAuthenticatedUserId()
RequestExecutiongetAuthenticatedUserId in interface RequestExecutionpublic String getCreateUser()
RequestExecutiongetCreateUser in interface RequestExecutionpublic String getUpdateUser()
RequestExecutiongetUpdateUser in interface RequestExecutionpublic String getLastExecutionStatus()
RequestExecutiongetLastExecutionStatus in interface RequestExecutionpublic RequestScheduleResponse convertToResponseWithBody()
RequestExecutionconvertToResponseWithBody in interface RequestExecutionpublic String getRequestBody(Long batchId)
RequestExecutiongetRequestBody in interface RequestExecutionpublic Collection<Long> getBatchRequestRequestsIDs(long batchId)
RequestExecutiongetBatchRequestRequestsIDs in interface RequestExecutionpublic BatchRequest getBatchRequest(long batchId)
RequestExecutiongetBatchRequest in interface RequestExecutionpublic void updateBatchRequest(long batchId,
BatchRequestResponse batchRequestResponse,
boolean statusOnly)
RequestExecutionupdateBatchRequest in interface RequestExecutionbatchId - order id of batch requeststatusOnly - true if only status should be updatedpublic void updateStatus(RequestExecution.Status status)
RequestExecutionupdateStatus in interface RequestExecutionCopyright © 2022 Apache Software Foundation. All rights reserved.