Class ClusterUpdateSettingsRequest

All Implemented Interfaces:
AckedRequest, Writeable, org.elasticsearch.core.RefCounted, TaskAwareRequest, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class ClusterUpdateSettingsRequest extends AcknowledgedRequest<ClusterUpdateSettingsRequest> implements org.elasticsearch.xcontent.ToXContentObject
Request for an update cluster settings action
  • Constructor Details

    • ClusterUpdateSettingsRequest

      public ClusterUpdateSettingsRequest(StreamInput in) throws IOException
      Throws:
      IOException
    • ClusterUpdateSettingsRequest

      public ClusterUpdateSettingsRequest()
  • Method Details

    • validate

      Specified by:
      validate in class ActionRequest
    • transientSettings

      @Deprecated public Settings transientSettings()
      Deprecated.
      Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.
    • persistentSettings

      public Settings persistentSettings()
    • transientSettings

      @Deprecated public ClusterUpdateSettingsRequest transientSettings(Settings settings)
      Deprecated.
      Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.
      Sets the transient settings to be updated. They will not survive a full cluster restart
    • transientSettings

      @Deprecated public ClusterUpdateSettingsRequest transientSettings(Settings.Builder settings)
      Deprecated.
      Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.
      Sets the transient settings to be updated. They will not survive a full cluster restart
    • transientSettings

      @Deprecated public ClusterUpdateSettingsRequest transientSettings(String source, org.elasticsearch.xcontent.XContentType xContentType)
      Deprecated.
      Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.
      Sets the source containing the transient settings to be updated. They will not survive a full cluster restart
    • transientSettings

      @Deprecated public ClusterUpdateSettingsRequest transientSettings(Map<String,?> source)
      Deprecated.
      Transient settings are in the process of being removed. Use persistent settings to update your cluster settings instead.
      Sets the transient settings to be updated. They will not survive a full cluster restart
    • persistentSettings

      public ClusterUpdateSettingsRequest persistentSettings(Settings settings)
      Sets the persistent settings to be updated. They will get applied cross restarts
    • persistentSettings

      public ClusterUpdateSettingsRequest persistentSettings(Settings.Builder settings)
      Sets the persistent settings to be updated. They will get applied cross restarts
    • persistentSettings

      public ClusterUpdateSettingsRequest persistentSettings(String source, org.elasticsearch.xcontent.XContentType xContentType)
      Sets the source containing the persistent settings to be updated. They will get applied cross restarts
    • persistentSettings

      public ClusterUpdateSettingsRequest persistentSettings(Map<String,?> source)
      Sets the persistent settings to be updated. They will get applied cross restarts
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class AcknowledgedRequest<ClusterUpdateSettingsRequest>
      Throws:
      IOException
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

      public static ClusterUpdateSettingsRequest fromXContent(org.elasticsearch.xcontent.XContentParser parser)