Java API - how to get the Cluster Settings on ES 6.0

Hi there.

I'm implementing on my Java application a feature where it will be possible the admin to check and update cluster settings like cluster.routing.allocation.disk.watermark.flood_stage dynamically.

The Update part was easy through the ClusterUpdateSettingsRequest. But I'm struggling to get the current cluster settings in order to display them.

I'd like a GET /_cluster/settings equivalent. I know there's the fancy ClusterGetSettingsRequest, but it's available from ES 6.4 version. I can't upgrade my ES right now, currently using 6.0.

So the question is: is there any way to get the cluster settings on my Java API through ES 6.0 TransportClient?

I've been trying and search different approaches without success.
Thanks in advance.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.