| Constructor and Description |
|---|
IndexFieldTypePoller(Indices indices,
com.codahale.metrics.MetricRegistry metricRegistry,
IndexFieldTypePollerAdapter indexFieldTypePollerAdapter) |
| 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(Indices indices, com.codahale.metrics.MetricRegistry metricRegistry, IndexFieldTypePollerAdapter indexFieldTypePollerAdapter)
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–2021 Graylog, Inc.. All rights reserved.