public class UpgradeRequest extends BroadcastRequest<UpgradeRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
UpgradeRequest.Defaults |
TransportRequest.EmptyIndicesRequest.Replaceableindices| 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, validategetShouldStoreResultgetParentTask, setParentTaskremoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateTask, getDescription, setParentTaskpublic 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
StreamablereadFrom in interface StreamablereadFrom in class BroadcastRequest<UpgradeRequest>java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class BroadcastRequest<UpgradeRequest>java.io.IOExceptionpublic boolean upgradeOnlyAncientSegments()
public UpgradeRequest upgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments)
public java.lang.String toString()
toString in class java.lang.Object