public class UpgradeRequest extends BroadcastRequest<UpgradeRequest>
| Modifier and Type | Class and Description |
|---|---|
static class |
UpgradeRequest.Defaults |
TransportRequest.EmptyIndicesRequest.Replaceableindicesheaders| Constructor and Description |
|---|
UpgradeRequest() |
UpgradeRequest(String... indices)
Constructs an optimization request over one or more indices.
|
| Modifier and Type | Method and Description |
|---|---|
void |
readFrom(StreamInput in) |
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) |
indices, indices, indicesOptions, indicesOptions, validatecreateTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic UpgradeRequest(String... indices)
indices - The indices to optimize, no indices passed means all indices will be optimized.public UpgradeRequest()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastRequest<UpgradeRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastRequest<UpgradeRequest>IOExceptionpublic boolean upgradeOnlyAncientSegments()
public UpgradeRequest upgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments)
Copyright © 2009–2017. All rights reserved.