@RestController
@RequestMapping(value="l")
public class LightningController
extends java.lang.Object
Constructor and Description |
---|
LightningController() |
Modifier and Type | Method and Description |
---|---|
byte[] |
audit(java.lang.String sessionId)
Get the detailed report for the request in compressed format.
|
LightningRequestReport |
auditJson(java.lang.String sessionId)
Get the detailed report for the request in JSON format.
|
byte[] |
auditSummary(java.lang.String sessionId)
Get the list of detailed reports in store.
|
byte[] |
getLightningStats()
Get the system metrics including CPU, physical and JVM memory.
|
java.lang.String |
getSystemConfig()
Get the system configuration including capacity, retention policy etc
|
byte[] |
poll(java.lang.String sessionId,
boolean pollDeltaOnly)
Poll the current status of the request in compressed format.
|
LightningResponse |
pollJson(java.lang.String sessionId,
boolean pollDeltaOnly)
Poll the current status of the request in JSON format.
|
java.lang.String |
reserve()
ECV check URL.
|
ReservationReceipt |
reserve(java.lang.Integer load)
Get reservation for the load.
|
void |
setTaskExecutionService(TaskExecutionService taskExecutionService) |
java.lang.String |
submit(java.lang.String request)
Submit a request.
|
SystemConfig |
updateSystemConfig(java.lang.String payload)
Update the system configuration including capacity, retention policy etc
|
@RequestMapping(value="/ecv", method={GET,HEAD}, produces="application/json") public java.lang.String reserve()
public void setTaskExecutionService(TaskExecutionService taskExecutionService)
@RequestMapping(value="/submit", method=POST) public java.lang.String submit(@RequestBody java.lang.String request)
request
- request to submit@RequestMapping(value="/reserve/{load}", method=GET, produces="application/json") public ReservationReceipt reserve(@PathVariable(value="load") java.lang.Integer load)
load
- the load@RequestMapping(value="/poll/json/{sessionId}/{pollDeltaOnly}", method=GET, produces="application/json") public LightningResponse pollJson(@PathVariable(value="sessionId") java.lang.String sessionId, @PathVariable(value="pollDeltaOnly") boolean pollDeltaOnly)
sessionId
- the session id for the requestpollDeltaOnly
- get full or changes only@RequestMapping(value="/poll/{sessionId}/{pollDeltaOnly}", method=GET, produces="application/zip") public byte[] poll(@PathVariable(value="sessionId") java.lang.String sessionId, @PathVariable(value="pollDeltaOnly") boolean pollDeltaOnly)
sessionId
- the session id for the requestpollDeltaOnly
- get full or changes only@RequestMapping(value="/audit/{sessionId}", method=GET, produces="application/zip") public byte[] audit(@PathVariable(value="sessionId") java.lang.String sessionId)
sessionId
- the session id for the request@RequestMapping(value="/audit/json/{sessionId}", method=GET, produces="application/json") public LightningRequestReport auditJson(@PathVariable(value="sessionId") java.lang.String sessionId)
sessionId
- the session id for the request@RequestMapping(value="/auditSummary", method=GET, produces="application/zip") public byte[] auditSummary(@RequestParam(value="sessionId",required=false,defaultValue="") java.lang.String sessionId)
sessionId
- the session id@RequestMapping(value="/lightningStats", method=GET, produces="application/zip") public byte[] getLightningStats()
@RequestMapping(value="/updateSystemConfig", method=POST, produces="application/json") public SystemConfig updateSystemConfig(@RequestBody java.lang.String payload)
payload
- the SystemConfig
in JSON format@RequestMapping(value="/getSystemConfig", method=GET, produces="application/json") public java.lang.String getSystemConfig()