Module org.elasticsearch.server
Class BroadcastUnpromotableRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.broadcast.unpromotable.BroadcastUnpromotableRequest
- All Implemented Interfaces:
IndicesRequest
,Writeable
,RefCounted
,TaskAwareRequest
- Direct Known Subclasses:
UnpromotableShardRefreshRequest
A request that is broadcast to the unpromotable assigned replicas of a primary.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequest
IndicesRequest.RemoteClusterShardRequest, IndicesRequest.Replaceable
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final String[]
protected final ShardId
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED
-
Constructor Summary
ConstructorsConstructorDescriptionBroadcastUnpromotableRequest
(IndexShardRoutingTable indexShardRoutingTable) BroadcastUnpromotableRequest
(IndexShardRoutingTable indexShardRoutingTable, boolean failShardOnError) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns optional description of the request to be displayed by the task managerString[]
indices()
Returns the array of indices that the action relates toReturns the indices options used to resolve indices.shardId()
toString()
validate()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestId
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.action.IndicesRequest
includeDataStreams
Methods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, setParentTask
-
Field Details
-
shardId
-
indices
-
failShardOnError
protected final boolean failShardOnError
-
-
Constructor Details
-
BroadcastUnpromotableRequest
- Throws:
IOException
-
BroadcastUnpromotableRequest
-
BroadcastUnpromotableRequest
public BroadcastUnpromotableRequest(IndexShardRoutingTable indexShardRoutingTable, boolean failShardOnError)
-
-
Method Details
-
shardId
-
validate
- Specified by:
validate
in classActionRequest
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionRequest
- Throws:
IOException
-
toString
- Overrides:
toString
in classTransportRequest
-
getDescription
Description copied from interface:TaskAwareRequest
Returns optional description of the request to be displayed by the task manager- Specified by:
getDescription
in interfaceTaskAwareRequest
-
indices
Description copied from interface:IndicesRequest
Returns the array of indices that the action relates to- Specified by:
indices
in interfaceIndicesRequest
-
failShardOnError
public boolean failShardOnError() -
indicesOptions
Description copied from interface:IndicesRequest
Returns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.- Specified by:
indicesOptions
in interfaceIndicesRequest
-