public class LightningClientConfig extends Object
| Constructor and Description |
|---|
LightningClientConfig() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuditApiUrl()
Get the API URL template for audit data.
|
String |
getAuditJsonApiUrl()
Get the API URL template for audit data in JSON format.
|
String |
getAuditSummaryUrl()
Get the API URL template for audit summary data.
|
List<String> |
getCrossRegionSeeds()
Get the list of stand alone lightning core instances from different colocations.
|
String |
getLightningStatsUrl()
Get the API URL template to fetch lightning statistics.
|
int |
getMaxRetryAttempt()
Get the maximum retry attempt to make reservation with a seed.
|
String |
getPollApiUrl()
Get the API URL template for polling response.
|
String |
getReserveApiUrl()
Get the API URL template for Reservation.
|
List<String> |
getSeeds()
Get the list of stand alone lightning core instances aka seeds
|
String |
getSubmitApiUrl()
Get the API URL template for submit.
|
String |
getSystemConfigUpdateUrl()
Get the API URL template to update system configuration.
|
String |
getSystemConfigUrl()
Get the API URL template to get system configuration.
|
boolean |
isAllowCrossRegionInteraction()
Check if cross region interaction is enabled.\
|
boolean |
isEmbeddedMode()
Check if lightning core runs in embedded mode.
|
void |
setAllowCrossRegionInteraction(boolean allowCrossRegionInteraction)
Enable cross region interaction.
|
void |
setAuditApiUrl(String auditApiUrl)
Set the API URL template for audit data.
|
void |
setAuditJsonApiUrl(String auditJsonApiUrl)
Set the API URL template for audit data in JSON format.
|
void |
setAuditSummaryUrl(String auditSummaryUrl)
Set the API URL template for audit summary data.
|
void |
setCrossRegionSeeds(List<String> crossRegionSeeds)
Set the list of stand alone lightning core instances from different colocations.
|
void |
setEmbeddedMode(boolean embeddedMode)
Set the lightning core to run in embedded mode.
|
void |
setLightningStatsUrl(String lightningStatsUrl)
Set the API URL template to get lightning statistics.
|
void |
setMaxRetryAttempt(int maxRetryAttempt)
Set the maximum retry attempt to make reservation with a seed.
|
void |
setPollApiUrl(String pollApiUrl)
Set the API URL template for Polling.
|
void |
setReserveApiUrl(String reserveApiUrl)
Set the API URL template for Reservation.
|
void |
setSeeds(List<String> seeds)
Set the list of stand alone lightning core instances aka seeds.
|
void |
setSubmitApiUrl(String submitApiUrl)
Set the API URL template for submitting request.
|
void |
setSystemConfigUpdateUrl(String systemConfigUpdateUrl)
Set the API URL template to update system configuration.
|
void |
setSystemConfigUrl(String systemConfigUrl)
Set the API URL template to get system configuration.
|
public String getReserveApiUrl()
public void setReserveApiUrl(String reserveApiUrl)
Format: http://{hostname}:[port]/[some/reservation/url]
Example: http://{host}:8989/l/reserve
reserveApiUrl - the URL template for making reservationpublic String getSubmitApiUrl()
public void setSubmitApiUrl(String submitApiUrl)
Format: http://{hostname}:[port]/[some/submit/url]
Example: http://{host}:8989/l/submit
submitApiUrl - the URL template for submitting taskspublic String getPollApiUrl()
public void setPollApiUrl(String pollApiUrl)
Format: http://{hostname}:[port]/[some/poll/url]
Example: http://{host}:8989/l/poll
pollApiUrl - the URL template for polling responsepublic List<String> getSeeds()
public void setSeeds(List<String> seeds)
embeddedMode is set to false.seeds - the list of host names running lightning corepublic String getAuditApiUrl()
public void setAuditApiUrl(String auditApiUrl)
Format: http://{hostname}:[port]/[some/audit/url]
Example: http://{host}:8989/l/audit
auditApiUrl - the URL template to get compressed audit datapublic String getLightningStatsUrl()
public void setLightningStatsUrl(String lightningStatsUrl)
Format: http://{hostname}:[port]/[lightningStatsUrl]
Example: http://{host}:8989/l/lightningStats
lightningStatsUrl - the URL template to get lightning statisticspublic String getAuditSummaryUrl()
public void setAuditSummaryUrl(String auditSummaryUrl)
Format: http://{hostname}:[port]/[some/auditSummary/url]
Example: http://{host}:8989/l/auditSummary
auditSummaryUrl - the URL template to get audit summary datapublic int getMaxRetryAttempt()
public void setMaxRetryAttempt(int maxRetryAttempt)
maxRetryAttempt - the maximum retry attemptpublic String getSystemConfigUrl()
public void setSystemConfigUrl(String systemConfigUrl)
Format: http://{hostname}:[port]/[getSystemConfigUrl]
Example: http://{host}:8989/l/getSystemConfig
systemConfigUrl - the URL template to get system configurationpublic String getSystemConfigUpdateUrl()
public void setSystemConfigUpdateUrl(String systemConfigUpdateUrl)
Format: http://{hostname}:[port]/[updateSystemConfigUrl]
Example: http://{host}:8989/l/updateSystemConfig
systemConfigUpdateUrl - the URL template to update system configurationpublic String getAuditJsonApiUrl()
public void setAuditJsonApiUrl(String auditJsonApiUrl)
Format: http://{hostname}:[port]/[some/audit/url]
Example: http://{host}:8989/l/audit/json
auditJsonApiUrl - the URL template to get audit data in JSON formatpublic boolean isEmbeddedMode()
true if the core runs in embedded modepublic void setEmbeddedMode(boolean embeddedMode)
true, the lightning core will run in embedded mode.
If set to false, lightning core will run in standalone mode and has to be registered with client by calling setSeeds(List) method.embeddedMode - to run lightning core in embedded mode or standalone modepublic boolean isAllowCrossRegionInteraction()
true if cross region interaction is enabledpublic void setAllowCrossRegionInteraction(boolean allowCrossRegionInteraction)
false, tasks will only be submitted to lightning core running on the same colocation.
If set to true, tasks will be submitted to lightning core running on different colocation,
if all the lightning core instances running in the local colocations are busy.allowCrossRegionInteraction - to allow submitting task to lightning core running on different colocationpublic List<String> getCrossRegionSeeds()
public void setCrossRegionSeeds(List<String> crossRegionSeeds)
allowCrossRegionInteraction is set to truecrossRegionSeeds - the list of host names on different colocations running lightning core.Copyright © 2017. All rights reserved.