public class UpdateSettingsRequest extends AcknowledgedRequest<UpdateSettingsRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.ReplaceableDEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout| Constructor and Description |
|---|
UpdateSettingsRequest() |
UpdateSettingsRequest(Settings settings,
java.lang.String... indices)
Constructs a new request to update settings for one or more indices
|
UpdateSettingsRequest(java.lang.String... indices)
Constructs a new request to update settings for one or more indices
|
| Modifier and Type | Method and 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.util.Map source)
Sets the settings to be updated (either json or yaml format)
|
UpdateSettingsRequest |
settings(Settings.Builder settings)
Sets the settings to be updated
|
UpdateSettingsRequest |
settings(Settings settings)
Sets the settings to be updated
|
UpdateSettingsRequest |
settings(java.lang.String source)
Deprecated.
use
settings(String, XContentType) to avoid content type detection |
UpdateSettingsRequest |
settings(java.lang.String source,
XContentType xContentType)
Sets the settings to be updated (either json or yaml format)
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeoutmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutgetShouldStoreResultgetParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmasterNodeTimeoutcreateTask, getDescription, 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)
@Deprecated public UpdateSettingsRequest settings(java.lang.String source)
settings(String, XContentType) to avoid content type detectionpublic 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 MasterNodeRequest<UpdateSettingsRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class MasterNodeRequest<UpdateSettingsRequest>java.io.IOException