public class UpdateSettingsRequest extends AcknowledgedRequest<UpdateSettingsRequest> implements IndicesRequest.Replaceable
TransportRequest.EmptyIndicesRequest.ReplaceableDEFAULT_ACK_TIMEOUT, timeoutDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeoutheaders| Constructor and Description |
|---|
UpdateSettingsRequest() |
UpdateSettingsRequest(Settings settings,
String... indices)
Constructs a new request to update settings for one or more indices
|
UpdateSettingsRequest(String... indices)
Constructs a new request to update settings for one or more indices
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
indices()
Returns the array of indices that the action relates to
|
UpdateSettingsRequest |
indices(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) |
void |
readFrom(StreamInput in) |
UpdateSettingsRequest |
settings(Map source)
Sets the settings to be updated (either json/yaml/properties format)
|
UpdateSettingsRequest |
settings(Settings.Builder settings)
Sets the settings to be updated
|
UpdateSettingsRequest |
settings(Settings settings)
Sets the settings to be updated
|
UpdateSettingsRequest |
settings(String source)
Sets the settings to be updated (either json/yaml/properties format)
|
ActionRequestValidationException |
validate() |
void |
writeTo(StreamOutput out) |
ackTimeout, readTimeout, timeout, timeout, timeout, writeTimeoutmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutcreateTask, createTask, setParentTaskgetDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmasterNodeTimeoutpublic UpdateSettingsRequest()
public UpdateSettingsRequest(String... indices)
public ActionRequestValidationException validate()
validate in class ActionRequest<UpdateSettingsRequest>public String[] indices()
IndicesRequestindices in interface IndicesRequestpublic UpdateSettingsRequest indices(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(String source)
public UpdateSettingsRequest settings(Map source)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class MasterNodeRequest<UpdateSettingsRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class MasterNodeRequest<UpdateSettingsRequest>IOExceptionCopyright © 2009–2017. All rights reserved.