public class UpgradeSettingsRequest extends AcknowledgedRequest<UpgradeSettingsRequest>
TransportRequest.Empty
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
headers
Constructor and Description |
---|
UpgradeSettingsRequest() |
UpgradeSettingsRequest(Map<String,Tuple<Version,String>> versions)
Constructs a new request to update minimum compatible version settings for one or more indices
|
Modifier and Type | Method and Description |
---|---|
void |
readFrom(StreamInput in) |
ActionRequestValidationException |
validate() |
UpgradeSettingsRequest |
versions(Map<String,Tuple<Version,String>> versions)
Sets the index versions to be updated
|
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 ActionRequestValidationException validate()
validate
in class ActionRequest<UpgradeSettingsRequest>
public UpgradeSettingsRequest versions(Map<String,Tuple<Version,String>> versions)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class MasterNodeRequest<UpgradeSettingsRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class MasterNodeRequest<UpgradeSettingsRequest>
IOException
Copyright © 2009–2016. All rights reserved.