Class IndexSelector
- java.lang.Object
-
- org.opennms.features.jest.client.index.IndexSelector
-
public class IndexSelector extends Object
-
-
Constructor Summary
Constructors Constructor Description IndexSelector(IndexSettings indexSettings, String prefix, IndexStrategy strategy, long expandTimeRangeInMs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getIndexNames(long start, long end)
We assume that timeRange is valid: - not Null - start and end date is positive - start date <= end date
-
-
-
Constructor Detail
-
IndexSelector
public IndexSelector(IndexSettings indexSettings, String prefix, IndexStrategy strategy, long expandTimeRangeInMs)
-
-
Method Detail
-
getIndexNames
public List<String> getIndexNames(long start, long end)
We assume that timeRange is valid: - not Null - start and end date is positive - start date <= end dateWe need to be aware that the indexes are part of the GET URL and therefor we can't have too many, it will result in a HTTP 400 from elasticsearch. Therefor we collapse the indexes with wildcards where applicable
-
-