public interface TaskExecutionService
TaskExecutionService
interface defines the operations for processing the request and getting the response.TaskExecutionServiceImpl
,
TaskExecutionManager
Modifier and Type | Method and Description |
---|---|
java.util.List<LightningRequestReport> |
getAuditReports(java.lang.String sessionId)
Get the detailed execution reports.
|
SystemStatus |
getLightningStats()
Get the system metrics including CPU, physical and JVM memory.
|
LightningRequestReport |
getReport(java.lang.String sessionId)
Get the detailed execution report for the request.
|
SystemConfig |
getSystemConfig()
Get the system configuration including capacity, retention policy etc
|
LightningResponse |
pollResponse(java.lang.String sessionId,
boolean pollDeltaOnly)
Poll the current execution state for the request submitted by #
submit(LightningRequest) method. |
ReservationReceipt |
reserve(int load)
Check for bandwidth to make reservation for the specified load.
|
void |
submit(LightningRequest request)
Submit a request to get executed asynchronously at high speed.
|
SystemConfig |
updateSystemConfig(SystemConfig sysConfig)
Update the system configuration including capacity, retention policy etc
|
void submit(LightningRequest request)
ReservationReceipt
returned by the reserve(int)
call.request
- contains the list of Task
and configuration to executeLightningResponse pollResponse(java.lang.String sessionId, boolean pollDeltaOnly)
submit(LightningRequest)
method.
This method id helpful to check if the request has completed.sessionId
- the session id of the LightningRequest
pollDeltaOnly
- get full if true
and delta response if false
LightningResponse
that has the current state of task executionLightningRequestReport getReport(java.lang.String sessionId)
pollResponse(String, boolean)
sessionId
- the session id of the LightningRequest
LightningRequestReport
that has the detailed execution report of the requestReservationReceipt reserve(int load)
load
- the load to check for reservationjava.util.List<LightningRequestReport> getAuditReports(java.lang.String sessionId)
sessionId
- the session id of the requestLightningRequestReport
available in the storeSystemStatus getLightningStats()
SystemConfig updateSystemConfig(SystemConfig sysConfig) throws java.lang.Exception
sysConfig
- the system configuration changes to makejava.lang.Exception
- when the update failsSystemConfig getSystemConfig()