public class UpgradeRequest extends BroadcastRequest<UpgradeRequest>
Modifier and Type | Class and Description |
---|---|
static class |
UpgradeRequest.Defaults |
TransportRequest.Empty
IndicesRequest.Replaceable
indices
Constructor and Description |
---|
UpgradeRequest() |
UpgradeRequest(java.lang.String... indices)
Constructs an optimization request over one or more indices.
|
Modifier and Type | Method and 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.
|
indices, indices, indicesOptions, indicesOptions, validate
getShouldStoreResult
getParentTask, setParentTask
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createTask, getDescription, 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 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