public class UpgradeRequest extends BroadcastRequest<UpgradeRequest>
Modifier and Type | Class and Description |
---|---|
static class |
UpgradeRequest.Defaults |
TransportRequest.Empty
IndicesRequest.Replaceable
indices
headers
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, validate
createTask, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public 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 Streamable
readFrom
in class BroadcastRequest<UpgradeRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class BroadcastRequest<UpgradeRequest>
IOException
public boolean upgradeOnlyAncientSegments()
public UpgradeRequest upgradeOnlyAncientSegments(boolean upgradeOnlyAncientSegments)
Copyright © 2009–2017. All rights reserved.