AckedRequest
, Streamable
, Writeable
, TaskAwareRequest
public class UpgradeSettingsRequest extends AcknowledgedRequest<UpgradeSettingsRequest>
TransportRequest.Empty
Writeable.Reader<V>, Writeable.Writer<V>
DEFAULT_ACK_TIMEOUT, timeout
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
Constructor | 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 | 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.
|
masterNodeTimeout
ackTimeout, timeout, timeout, timeout
getShouldStoreResult
masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
remoteAddress, remoteAddress
getParentTask, 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 interface Writeable
writeTo
in class AcknowledgedRequest<UpgradeSettingsRequest>
java.io.IOException