Module org.elasticsearch.server
Class UnpromotableShardRefreshRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.broadcast.unpromotable.BroadcastUnpromotableRequest
org.elasticsearch.action.admin.indices.refresh.UnpromotableShardRefreshRequest
- All Implemented Interfaces:
IndicesRequest
,Writeable
,RefCounted
,TaskAwareRequest
-
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
Fields inherited from class org.elasticsearch.action.support.broadcast.unpromotable.BroadcastUnpromotableRequest
failShardOnError, indices, shardId
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED
-
Constructor Summary
ConstructorsConstructorDescriptionUnpromotableShardRefreshRequest
(IndexShardRoutingTable indexShardRoutingTable, long primaryTerm, long segmentGeneration, boolean failShardOnError) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
toString()
validate()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.broadcast.unpromotable.BroadcastUnpromotableRequest
failShardOnError, getDescription, indices, indicesOptions, shardId
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
-
Constructor Details
-
UnpromotableShardRefreshRequest
public UnpromotableShardRefreshRequest(IndexShardRoutingTable indexShardRoutingTable, long primaryTerm, long segmentGeneration, boolean failShardOnError) -
UnpromotableShardRefreshRequest
- Throws:
IOException
-
-
Method Details
-
validate
- Overrides:
validate
in classBroadcastUnpromotableRequest
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classBroadcastUnpromotableRequest
- Throws:
IOException
-
getSegmentGeneration
public long getSegmentGeneration() -
getPrimaryTerm
public long getPrimaryTerm() -
toString
- Overrides:
toString
in classBroadcastUnpromotableRequest
-