Package org.n52.iceland.statistics.api
Class ElasticsearchSettings
- java.lang.Object
-
- org.n52.iceland.statistics.api.ElasticsearchSettings
-
@Configurable public class ElasticsearchSettings extends Object
-
-
Constructor Summary
Constructors Constructor Description ElasticsearchSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClusterName()List<String>getClusterNodes()StringgetIndexId()StringgetKibanaConfPath()StringgetNodeConnectionMode()StringgetTypeId()StringgetUuid()booleanisKibanaConfigEnable()booleanisLoggingEnabled()voidsaveBooleanValueToConfigFile(String key, Boolean value)voidsaveStringValueToConfigFile(String key, String value)With the settings API saves the new value to the configuration filevoidsetClusterName(String clusterName)voidsetClusterNodes(String clusterNodes)this variable must not be null and format of host[:port] comma separated if multiple values are givenvoidsetIndexId(String indexId)voidsetKibanaConfigEnable(boolean kibanaConfigEnable)voidsetKibanaConfPath(String kibanaConfPath)voidsetLoggingEnabled(boolean loggingEnabled)voidsetNodeConnectionMode(String choice)Connection type to the Elasticsearch cluster.voidsetTypeId(String typeId)voidsetUuid(String uuid)StringtoString()
-
-
-
Method Detail
-
isLoggingEnabled
public boolean isLoggingEnabled()
-
setLoggingEnabled
@Setting("statistics.elasticsearch.is_logging_enabled") public void setLoggingEnabled(boolean loggingEnabled)
-
getIndexId
public String getIndexId()
-
getTypeId
public String getTypeId()
-
getUuid
public String getUuid()
-
getClusterName
public String getClusterName()
-
setClusterName
@Setting("statistics.elasticsearch.cluster_name") public void setClusterName(String clusterName)
-
setClusterNodes
@Setting("statistics.elasticsearch.cluster_nodes") public void setClusterNodes(String clusterNodes)
this variable must not be null and format of host[:port] comma separated if multiple values are given- Parameters:
clusterNodes- list of the clusterNodes
-
getNodeConnectionMode
public String getNodeConnectionMode()
-
setNodeConnectionMode
@Setting("statistics.elasticsearch.connection_mode") public void setNodeConnectionMode(String choice)
Connection type to the Elasticsearch cluster. NodeClient or TransportClient are supported.- Parameters:
choice- the connection mode- See Also:
ElasticsearchSettingsKeys#CONNECTION_MODE_NODE,ElasticsearchSettingsKeys.CONNECTION_MODE_TRANSPORT_CLIENT,ElasticsearchSettingsKeys.CONNECTION_MODE_EMBEDDED_SERVER
-
saveStringValueToConfigFile
public void saveStringValueToConfigFile(String key, String value)
With the settings API saves the new value to the configuration file- Parameters:
key- key to save the valuevalue- value to save under the key
-
getKibanaConfPath
public String getKibanaConfPath()
-
setKibanaConfPath
@Setting("statistics.elasticsearch.kibana_config_file") public void setKibanaConfPath(String kibanaConfPath)
-
isKibanaConfigEnable
public boolean isKibanaConfigEnable()
-
setKibanaConfigEnable
@Setting("statistics.elasticsearch.kibana_config_enable") public void setKibanaConfigEnable(boolean kibanaConfigEnable)
-
-