Class ClusterUpdateSettingsRequest

All Implemented Interfaces:
AckedRequest, Writeable, org.elasticsearch.common.util.concurrent.RefCounted, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject, TaskAwareRequest

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

    • ClusterUpdateSettingsRequest

      public ClusterUpdateSettingsRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
    • ClusterUpdateSettingsRequest

      public ClusterUpdateSettingsRequest()
  • Method Details

    • validate

      Specified by:
      validate in class ActionRequest
    • transientSettings

      public Settings transientSettings()
    • persistentSettings

      public Settings persistentSettings()
    • transientSettings

      public ClusterUpdateSettingsRequest transientSettings​(Settings settings)
      Sets the transient settings to be updated. They will not survive a full cluster restart
    • transientSettings

      public ClusterUpdateSettingsRequest transientSettings​(Settings.Builder settings)
      Sets the transient settings to be updated. They will not survive a full cluster restart
    • transientSettings

      public ClusterUpdateSettingsRequest transientSettings​(java.lang.String source, org.elasticsearch.common.xcontent.XContentType xContentType)
      Sets the source containing the transient settings to be updated. They will not survive a full cluster restart
    • transientSettings

      public ClusterUpdateSettingsRequest transientSettings​(java.util.Map<java.lang.String,​?> source)
      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​(java.lang.String source, org.elasticsearch.common.xcontent.XContentType xContentType)
      Sets the source containing the persistent settings to be updated. They will get applied cross restarts
    • persistentSettings

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

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

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

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