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
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRestClusterGetSettingsResponse(Settings persistentSettings, Settings transientSettings, Settings defaultSettings) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the default settings for the cluster (only ifinclude_defaultswas 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 clusterinthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PERSISTENT_FIELD
- See Also:
-
TRANSIENT_FIELD
- See Also:
-
DEFAULTS_FIELD
- See Also:
-
-
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_defaultswas 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:
toXContentin interfaceToXContent- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-