*
* ECOMP is a trademark and service mark of AT&T Intellectual Property.
*/
-package org.onap.aai.sparky.search;
+package org.onap.aai.sparky.sync.config;
-import java.util.LinkedList;
-import java.util.List;
+public class ElasticSearchEndpointConfig {
-public class SuggestionList {
- // TODO: verify which data type these fields should be
- private Long processingTimeInMs;
- private Long totalFound;
- private Long numReturned;
- private List<Suggestion> suggestions = new LinkedList<>();
+ private String esIpAddress;
+ private String esServerPort;
+ private int scrollContextTimeToLiveInMinutes;
+ private int scrollContextBatchRequestSize;
+
+ public ElasticSearchEndpointConfig() {
- public void addSuggestion(Suggestion suggestion) {
- suggestions.add(suggestion);
}
- public List<Suggestion> getSuggestions() {
- return suggestions;
+ public String getEsIpAddress() {
+ return esIpAddress;
}
- public void setSuggestions(List<Suggestion> suggestions) {
- this.suggestions = suggestions;
+ public void setEsIpAddress(String esIpAddress) {
+ this.esIpAddress = esIpAddress;
}
- public Long getProcessingTimeInMs() {
- return processingTimeInMs;
+ public String getEsServerPort() {
+ return esServerPort;
}
- public Long getTotalFound() {
- return totalFound;
+ public void setEsServerPort(String esServerPort) {
+ this.esServerPort = esServerPort;
}
- public Long getNumReturned() {
- return numReturned;
+ public int getScrollContextTimeToLiveInMinutes() {
+ return scrollContextTimeToLiveInMinutes;
}
- public void setProcessingTimeInMs(Long processingTimeInMs) {
- this.processingTimeInMs = processingTimeInMs;
+ public void setScrollContextTimeToLiveInMinutes(int scrollContextTimeToLiveInMinutes) {
+ this.scrollContextTimeToLiveInMinutes = scrollContextTimeToLiveInMinutes;
}
- public void setTotalFound(Long totalFound) {
- this.totalFound = totalFound;
+ public int getScrollContextBatchRequestSize() {
+ return scrollContextBatchRequestSize;
}
- public void setNumReturned(Long numReturned) {
- this.numReturned = numReturned;
+ public void setScrollContextBatchRequestSize(int scrollContextBatchRequestSize) {
+ this.scrollContextBatchRequestSize = scrollContextBatchRequestSize;
}
+
+
+
}