IndicesRequest, IndicesRequest.Replaceable, AckedRequest, Streamable, Writeable, TaskAwareRequestpublic class UpdateSettingsRequest extends AcknowledgedRequest<UpdateSettingsRequest> implements IndicesRequest.Replaceable
IndicesRequest.ReplaceableTransportRequest.EmptyWriteable.Reader<V>, Writeable.Writer<V>DEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor | Description |
|---|---|
UpdateSettingsRequest() |
|
UpdateSettingsRequest(java.lang.String... indices) |
Constructs a new request to update settings for one or more indices
|
UpdateSettingsRequest(Settings settings,
java.lang.String... indices) |
Constructs a new request to update settings for one or more indices
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String[] |
indices() |
Returns the array of indices that the action relates to
|
UpdateSettingsRequest |
indices(java.lang.String... indices) |
Sets the indices to apply to settings update to
|
IndicesOptions |
indicesOptions() |
Returns the indices options used to resolve indices.
|
UpdateSettingsRequest |
indicesOptions(IndicesOptions indicesOptions) |
|
boolean |
isPreserveExisting() |
Returns
true iff the settings update should only add but not update settings. |
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
UpdateSettingsRequest |
setPreserveExisting(boolean preserveExisting) |
Iff set to
true this settings update will only add settings not already set on an index. |
UpdateSettingsRequest |
settings(java.lang.String source,
XContentType xContentType) |
Sets the settings to be updated (either json or yaml format)
|
UpdateSettingsRequest |
settings(java.util.Map source) |
Sets the settings to be updated (either json or yaml format)
|
UpdateSettingsRequest |
settings(Settings settings) |
Sets the settings to be updated
|
UpdateSettingsRequest |
settings(Settings.Builder settings) |
Sets the settings to be updated
|
ActionRequestValidationException |
validate() |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
masterNodeTimeoutackTimeout, timeout, timeout, timeoutgetShouldStoreResultmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewWriteableReadercreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic UpdateSettingsRequest()
public UpdateSettingsRequest(java.lang.String... indices)
public UpdateSettingsRequest(Settings settings, java.lang.String... indices)
public ActionRequestValidationException validate()
validate in class ActionRequestpublic java.lang.String[] indices()
IndicesRequestindices in interface IndicesRequestpublic UpdateSettingsRequest indices(java.lang.String... indices)
indices in interface IndicesRequest.Replaceablepublic IndicesOptions indicesOptions()
IndicesRequestindicesOptions in interface IndicesRequestpublic UpdateSettingsRequest indicesOptions(IndicesOptions indicesOptions)
public UpdateSettingsRequest settings(Settings settings)
public UpdateSettingsRequest settings(Settings.Builder settings)
public UpdateSettingsRequest settings(java.lang.String source, XContentType xContentType)
public boolean isPreserveExisting()
true 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 is falsepublic UpdateSettingsRequest setPreserveExisting(boolean preserveExisting)
true this settings update will only add settings not already set on an index. Existing settings remain
unchanged.public UpdateSettingsRequest settings(java.util.Map source)
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class AcknowledgedRequest<UpdateSettingsRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class AcknowledgedRequest<UpdateSettingsRequest>java.io.IOException