public class UpdateSettingsRequest extends AcknowledgedRequest<UpdateSettingsRequest> implements IndicesRequest.Replaceable
TransportRequest.Empty
IndicesRequest.Replaceable
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
headers
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, writeTimeout
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
createTask, createTask, setParentTask
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
masterNodeTimeout
public UpdateSettingsRequest()
public UpdateSettingsRequest(String... indices)
public ActionRequestValidationException validate()
validate
in class ActionRequest<UpdateSettingsRequest>
public String[] indices()
IndicesRequest
indices
in interface IndicesRequest
public UpdateSettingsRequest indices(String... indices)
indices
in interface IndicesRequest.Replaceable
public IndicesOptions indicesOptions()
IndicesRequest
indicesOptions
in interface IndicesRequest
public 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 Streamable
readFrom
in class MasterNodeRequest<UpdateSettingsRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<UpdateSettingsRequest>
IOException
Copyright © 2009–2016. All rights reserved.