public class UpgradeSettingsRequest extends AcknowledgedRequest<UpgradeSettingsRequest>
TransportRequest.Empty
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor and Description |
---|
UpgradeSettingsRequest() |
UpgradeSettingsRequest(java.util.Map<java.lang.String,Tuple<Version,java.lang.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)
Set this object's fields from a StreamInput.
|
ActionRequestValidationException |
validate() |
UpgradeSettingsRequest |
versions(java.util.Map<java.lang.String,Tuple<Version,java.lang.String>> versions)
Sets the index versions to be updated
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
ackTimeout, timeout, timeout, timeout
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
masterNodeTimeout
createTask, getDescription, setParentTask
public UpgradeSettingsRequest()
public UpgradeSettingsRequest(java.util.Map<java.lang.String,Tuple<Version,java.lang.String>> versions)
versions
- a map from index name to elasticsearch version, oldest lucene segment version tuplepublic ActionRequestValidationException validate()
validate
in class ActionRequest
public UpgradeSettingsRequest versions(java.util.Map<java.lang.String,Tuple<Version,java.lang.String>> versions)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class AcknowledgedRequest<UpgradeSettingsRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class AcknowledgedRequest<UpgradeSettingsRequest>
java.io.IOException