Package org.elasticsearch.index.shard
Class PrimaryReplicaSyncer.ResyncRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- org.elasticsearch.action.ActionRequest
-
- org.elasticsearch.index.shard.PrimaryReplicaSyncer.ResyncRequest
-
- All Implemented Interfaces:
Streamable
,Writeable
,TaskAwareRequest
- Enclosing class:
- PrimaryReplicaSyncer
public static class PrimaryReplicaSyncer.ResyncRequest extends ActionRequest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description ResyncRequest(ShardId shardId, java.lang.String allocationId)
-
Method Summary
Modifier and Type Method Description Task
createTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId, java.util.Map<java.lang.String,java.lang.String> headers)
Returns the task object that should be used to keep track of the processing of the request.java.lang.String
getDescription()
Returns optional description of the request to be displayed by the task managerjava.lang.String
toString()
ActionRequestValidationException
validate()
-
Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult, readFrom, writeTo
-
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, setParentTask
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
setParentTask
-
-
-
-
Constructor Detail
-
ResyncRequest
public ResyncRequest(ShardId shardId, java.lang.String allocationId)
-
-
Method Detail
-
createTask
public Task createTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId, java.util.Map<java.lang.String,java.lang.String> headers)
Description copied from interface:TaskAwareRequest
Returns the task object that should be used to keep track of the processing of the request. A request can override this method and return null to avoid being tracked by the task manager.
-
getDescription
public java.lang.String getDescription()
Description copied from interface:TaskAwareRequest
Returns optional description of the request to be displayed by the task manager
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validate
public ActionRequestValidationException validate()
- Specified by:
validate
in classActionRequest
-
-