public class ESStatisticsPublisher extends Object implements XStatisticsPublisher<org.elasticsearch.common.xcontent.XContentBuilder>
Constructor and Description |
---|
ESStatisticsPublisher(ESStatisticsServer esStatisticsServer) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
init(String confDir) |
void |
publish(Map<String,Object> contentMap)
Publishes a map of contents to external metrics collector
|
void |
publish(String contentString)
Publishes a string contents to external metrics collector
|
void |
publish(org.elasticsearch.common.xcontent.XContentBuilder content)
Publishes
T type contents to external metrics collector |
void |
setActiveIndexAliasName(String activeIndexAliasName) |
void |
setBackOffExponentialRetryAttempts(int backOffExponentialRetryAttempts) |
void |
setBackOffExponentialTimeInMillis(int backOffExponentialTimeInMillis) |
void |
setBulkActions(int bulkActions) |
void |
setBulkSizeInMB(int bulkSizeInMB) |
void |
setConcurrentRequests(int concurrentRequests) |
void |
setDeleteInactiveIndicesAtDestroy(boolean deleteInactiveIndicesAtDestroy) |
void |
setDeleteInactiveIndicesAtInit(boolean deleteInactiveIndicesAtInit) |
void |
setDeleteOldestIndexAfterRollOver(boolean deleteOldestIndexAfterRollOver) |
void |
setEsHealthTimeoutMillis(int esHealthTimeoutMillis) |
void |
setFlushIntervalInSeconds(int flushIntervalInSeconds) |
void |
setInactiveIndexAliasName(String inactiveIndexAliasName) |
void |
setInactiveSettingFile(String inactiveSettingFile) |
void |
setIndexMappingType(String indexMappingType) |
void |
setIndexRollOverEnabled(boolean indexRollOverEnabled) |
void |
setIndexTemplateName(String indexTemplateName) |
void |
setInitialIndexName(String initialIndexName) |
void |
setMaxAgeInMinutes(long maxAgeInMinutes) |
void |
setMaxDocs(long maxDocs) |
void |
setOptimized(boolean optimized) |
void |
setRollOverTimePeriodInMinutes(long rollOverTimePeriodInMinutes) |
void |
setTemplateFile(String templateFile) |
public ESStatisticsPublisher(ESStatisticsServer esStatisticsServer)
public void init(String confDir)
init
in interface XStatisticsPublisher<org.elasticsearch.common.xcontent.XContentBuilder>
public void destroy()
destroy
in interface XStatisticsPublisher<org.elasticsearch.common.xcontent.XContentBuilder>
public void publish(Map<String,Object> contentMap)
publish
in interface XStatisticsPublisher<org.elasticsearch.common.xcontent.XContentBuilder>
contentMap
- key-value pairs of metrics recordspublic void publish(String contentString)
publish
in interface XStatisticsPublisher<org.elasticsearch.common.xcontent.XContentBuilder>
contentString
- string of metrics recordspublic void publish(org.elasticsearch.common.xcontent.XContentBuilder content)
T
type contents to external metrics collectorpublish
in interface XStatisticsPublisher<org.elasticsearch.common.xcontent.XContentBuilder>
content
- metrics record contentpublic void setBulkActions(int bulkActions)
public void setBulkSizeInMB(int bulkSizeInMB)
public void setFlushIntervalInSeconds(int flushIntervalInSeconds)
public void setConcurrentRequests(int concurrentRequests)
public void setBackOffExponentialTimeInMillis(int backOffExponentialTimeInMillis)
public void setBackOffExponentialRetryAttempts(int backOffExponentialRetryAttempts)
public void setEsHealthTimeoutMillis(int esHealthTimeoutMillis)
public void setOptimized(boolean optimized)
public void setInitialIndexName(String initialIndexName)
public void setIndexMappingType(String indexMappingType)
public void setIndexTemplateName(String indexTemplateName)
public void setActiveIndexAliasName(String activeIndexAliasName)
public void setInactiveIndexAliasName(String inactiveIndexAliasName)
public void setMaxDocs(long maxDocs)
public void setMaxAgeInMinutes(long maxAgeInMinutes)
public void setRollOverTimePeriodInMinutes(long rollOverTimePeriodInMinutes)
public void setIndexRollOverEnabled(boolean indexRollOverEnabled)
public void setTemplateFile(String templateFile)
public void setInactiveSettingFile(String inactiveSettingFile)
public void setDeleteOldestIndexAfterRollOver(boolean deleteOldestIndexAfterRollOver)
public void setDeleteInactiveIndicesAtInit(boolean deleteInactiveIndicesAtInit)
public void setDeleteInactiveIndicesAtDestroy(boolean deleteInactiveIndicesAtDestroy)
Copyright © 2016–2019 AdroitLogic. All rights reserved.