IndicesRequest
, IndicesRequest.Replaceable
, Streamable
, Writeable
, TaskAwareRequest
public class UpgradeRequest extends BroadcastRequest<UpgradeRequest>
Modifier and Type | Class | Description |
---|---|---|
static class |
UpgradeRequest.Defaults |
IndicesRequest.Replaceable
TransportRequest.Empty
Writeable.Reader<V>, Writeable.Writer<V>
indices
Constructor | Description |
---|---|
UpgradeRequest() |
|
UpgradeRequest(java.lang.String... indices) |
Constructs an optimization request over one or more indices.
|
Modifier and Type | Method | Description |
---|---|---|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
java.lang.String |
toString() |
|
boolean |
upgradeOnlyAncientSegments() |
Should the upgrade only the ancient (older major version of Lucene) segments?
Defaults to false.
|
UpgradeRequest |
upgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
getShouldStoreResult
indices, indices, indicesOptions, indicesOptions, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createTask, getDescription, setParentTask
remoteAddress, remoteAddress
getParentTask, setParentTask
public UpgradeRequest(java.lang.String... indices)
indices
- The indices to upgrade, no indices passed means all indices will be optimized.public UpgradeRequest()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class BroadcastRequest<UpgradeRequest>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class BroadcastRequest<UpgradeRequest>
java.io.IOException
public boolean upgradeOnlyAncientSegments()
public UpgradeRequest upgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments)
public java.lang.String toString()
toString
in class java.lang.Object