public interface ServiceCaller
ServiceCaller acts as a interface between the client and core (aka seeds). This interface provides the
methods to make reservation, submit tasks, poll the task response, get audit data, view/edit configuration etc.RestAPICaller,
EmbeddedAPICaller| Modifier and Type | Method and Description |
|---|---|
com.ebay.lightning.core.store.LightningRequestReport |
getAuditJsonReport(String sessionId,
String serviceHostIp)
Get the audit report for the request id in JSON format.
|
com.ebay.lightning.core.store.LightningRequestReport |
getAuditReport(String sessionId,
String serviceHostIp)
Get the audit report for the request id in compressed format.
|
List<com.ebay.lightning.core.store.LightningRequestReport> |
getAuditSummary(String serviceHostIp,
String sessionId)
Get the audit summary in compressed format.
|
com.ebay.lightning.core.beans.SystemStatus |
getLightningStats(String servingHostIp)
Get the system statistics of the seed
|
com.ebay.lightning.core.config.SystemConfig |
getSystemConfig(String serviceHostIp)
Get the configuration of the seed
|
com.ebay.lightning.core.beans.LightningResponse |
pollResults(String sessionId,
String serviceHostIp,
boolean pollDeltaOnly)
Get the result for the session id.
|
com.ebay.lightning.core.beans.ReservationReceipt |
reserve(int count,
String serviceHostIp)
Attempts to reserve task execution bandwidth on the seed
|
boolean |
submit(com.ebay.lightning.core.beans.LightningRequest request,
String serviceHostIp)
Submits the request to the specific seed.
|
com.ebay.lightning.core.config.SystemConfig |
updateSystemConfig(String serviceHostIp,
com.ebay.lightning.core.config.SystemConfig sysConfig)
Update the configuration of the seed
|
com.ebay.lightning.core.beans.ReservationReceipt reserve(int count,
String serviceHostIp)
count - load size of the requestserviceHostIp - the seedcom.ebay.lightning.core.store.LightningRequestReport getAuditReport(String sessionId, String serviceHostIp)
sessionId - the session id submitted through submit(LightningRequest, String) method or
returned by the reserve(int, String) methodserviceHostIp - the seedcom.ebay.lightning.core.store.LightningRequestReport getAuditJsonReport(String sessionId, String serviceHostIp)
sessionId - the session id submitted through submit(LightningRequest, String) method or
returned by the reserve(int, String) methodserviceHostIp - the seedList<com.ebay.lightning.core.store.LightningRequestReport> getAuditSummary(String serviceHostIp, String sessionId)
sessionId - the session id submitted through submit(LightningRequest, String) method or
returned by the reserve(int, String) methodserviceHostIp - the seedcom.ebay.lightning.core.beans.SystemStatus getLightningStats(String servingHostIp)
servingHostIp - the seedSystemStatus that include information related to load, memory, CPU etcboolean submit(com.ebay.lightning.core.beans.LightningRequest request,
String serviceHostIp)
request - the request with the reservation receipt and task listserviceHostIp - the seed that executes the requesttrue if the submit operation is successfulcom.ebay.lightning.core.config.SystemConfig updateSystemConfig(String serviceHostIp, com.ebay.lightning.core.config.SystemConfig sysConfig)
serviceHostIp - the seedsysConfig - the configuration changes to be appliedSystemConfig after updatingcom.ebay.lightning.core.config.SystemConfig getSystemConfig(String serviceHostIp)
serviceHostIp - the seedSystemConfig that includes the seed capacity, retention policy etccom.ebay.lightning.core.beans.LightningResponse pollResults(String sessionId, String serviceHostIp, boolean pollDeltaOnly)
sessionId - the session id submitted through submit(LightningRequest, String) method or
returned by the reserve(int, String) methodserviceHostIp - the seedpollDeltaOnly - get the complete or only the deltaCopyright © 2017. All rights reserved.