Module org.elasticsearch.server
Class UpdateSettingsClusterStateUpdateRequest
java.lang.Object
org.elasticsearch.cluster.ack.ClusterStateUpdateRequest<T>
org.elasticsearch.cluster.ack.IndicesClusterStateUpdateRequest<UpdateSettingsClusterStateUpdateRequest>
org.elasticsearch.action.admin.indices.settings.put.UpdateSettingsClusterStateUpdateRequest
- All Implemented Interfaces:
AckedRequest
public class UpdateSettingsClusterStateUpdateRequest
extends IndicesClusterStateUpdateRequest<UpdateSettingsClusterStateUpdateRequest>
Cluster state update request that allows to update settings for some indices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
iff the settings update should only add but not update settings.boolean
Returnstrue
if non-dynamic setting updates should go through, by automatically unassigning shards in the same cluster state change as the setting update.reopenShards
(boolean reopenShards) setPreserveExisting
(boolean preserveExisting) Iff set totrue
this settings update will only add settings not already set on an index.settings()
Returns theSettings
to updateSets theSettings
to updatetoString()
Methods inherited from class org.elasticsearch.cluster.ack.IndicesClusterStateUpdateRequest
indices, indices
Methods inherited from class org.elasticsearch.cluster.ack.ClusterStateUpdateRequest
ackTimeout, ackTimeout, masterNodeTimeout, masterNodeTimeout
-
Constructor Details
-
UpdateSettingsClusterStateUpdateRequest
public UpdateSettingsClusterStateUpdateRequest()
-
-
Method Details
-
isPreserveExisting
public boolean isPreserveExisting()Returnstrue
iff the settings update should only add but not update settings. If the setting already exists it should not be overwritten by this update. The default isfalse
-
reopenShards
public boolean reopenShards()Returnstrue
if non-dynamic setting updates should go through, by automatically unassigning shards in the same cluster state change as the setting update. The shards will be automatically reassigned after the cluster state update is made. The default isfalse
. -
reopenShards
-
setPreserveExisting
Iff set totrue
this settings update will only add settings not already set on an index. Existing settings remain unchanged. -
settings
Returns theSettings
to update -
settings
Sets theSettings
to update -
toString
-