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 interface org.elasticsearch.action.IndicesRequest
IndicesRequest.RemoteClusterShardRequest, IndicesRequest.Replaceable, IndicesRequest.SingleIndexNoWildcardsNested 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, shardIdFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
ConstructorsConstructorDescriptionUnpromotableShardRefreshRequest(IndexShardRoutingTable indexShardRoutingTable, long primaryTerm, long segmentGeneration, boolean failShardOnError) UnpromotableShardRefreshRequest(IndexShardRoutingTable indexShardRoutingTable, long primaryTerm, long segmentGeneration, boolean failShardOnError, TimeValue timeout) -
Method Summary
Modifier and TypeMethodDescriptionlonglongtoString()validate()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.broadcast.unpromotable.BroadcastUnpromotableRequest
failShardOnError, getDescription, indices, indicesOptions, shardIdMethods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestIdMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequest
includeDataStreamsMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, setParentTask
-
Constructor Details
-
UnpromotableShardRefreshRequest
public UnpromotableShardRefreshRequest(IndexShardRoutingTable indexShardRoutingTable, long primaryTerm, long segmentGeneration, boolean failShardOnError) -
UnpromotableShardRefreshRequest
public UnpromotableShardRefreshRequest(IndexShardRoutingTable indexShardRoutingTable, long primaryTerm, long segmentGeneration, boolean failShardOnError, @Nullable TimeValue timeout) -
UnpromotableShardRefreshRequest
- Throws:
IOException
-
-
Method Details
-
validate
- Overrides:
validatein classBroadcastUnpromotableRequest
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classBroadcastUnpromotableRequest- Throws:
IOException
-
getSegmentGeneration
public long getSegmentGeneration() -
getPrimaryTerm
public long getPrimaryTerm() -
getTimeout
-
toString
- Overrides:
toStringin classBroadcastUnpromotableRequest
-