| Constructor and Description |
|---|
IndexFieldTypePoller(io.searchbox.client.JestClient jestClient,
Indices indices,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
Set<IndexFieldTypesDTO> |
poll(IndexSet indexSet,
Set<IndexFieldTypesDTO> existingIndexTypes)
Returns the index field types for the given index set.
|
Optional<IndexFieldTypesDTO> |
pollIndex(String indexName,
String indexSetId)
Returns the index field types for the given index.
|
@Inject
public IndexFieldTypePoller(io.searchbox.client.JestClient jestClient,
Indices indices,
com.codahale.metrics.MetricRegistry metricRegistry)
public Set<IndexFieldTypesDTO> poll(IndexSet indexSet, Set<IndexFieldTypesDTO> existingIndexTypes)
Indices present in existingIndexTypes (except for the current write index) will not be polled
again to avoid Elasticsearch requests.
indexSet - index set to pollexistingIndexTypes - existing index field type datapublic Optional<IndexFieldTypesDTO> pollIndex(String indexName, String indexSetId)
indexName - index name to poll types forindexSetId - index set ID of the given indexCopyright © 2012–2020 Graylog, Inc.. All rights reserved.