Module org.elasticsearch.server
Class RestClusterGetSettingsResponse
java.lang.Object
org.elasticsearch.action.admin.cluster.settings.RestClusterGetSettingsResponse
- All Implemented Interfaces:
ToXContent
,ToXContentObject
This response is specific to the REST client.
ClusterStateResponse
is used on the transport layer.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionRestClusterGetSettingsResponse
(Settings persistentSettings, Settings transientSettings, Settings defaultSettings) -
Method Summary
Modifier and TypeMethodDescriptionboolean
fromXContent
(XContentParser parser) Returns the default settings for the cluster (only ifinclude_defaults
was set to true in the request)Returns the persistent settings for the clustergetSetting
(String setting) Returns the string value of the setting for the specified index.Returns the transient settings for the clusterint
hashCode()
toString()
toXContent
(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
RestClusterGetSettingsResponse
-
-
Method Details
-
getPersistentSettings
Returns the persistent settings for the cluster- Returns:
- Settings
-
getTransientSettings
Returns the transient settings for the cluster- Returns:
- Settings
-
getDefaultSettings
Returns the default settings for the cluster (only ifinclude_defaults
was set to true in the request)- Returns:
- Settings
-
getSetting
Returns the string value of the setting for the specified index. The order of search is first in persistent settings the transient settings and finally the default settings.- Parameters:
setting
- the name of the setting to get- Returns:
- String
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContent
in interfaceToXContent
- Throws:
IOException
-
fromXContent
-
equals
-
hashCode
public int hashCode() -
toString
-