public static final class TransportReplicationAction.ConcreteShardRequest<R extends ReplicationRequest<?>> extends TransportRequest
TransportRequest.Empty
Modifier and Type | Method and Description |
---|---|
Task |
createTask(long id,
java.lang.String type,
java.lang.String action,
TaskId parentTaskId)
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 manager
|
TaskId |
getParentTask()
Get a reference to the task that created this request.
|
long |
getPrimaryTerm() |
R |
getRequest() |
java.lang.String |
getTargetAllocationID() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
setParentTask(java.lang.String parentTaskNode,
long parentTaskId)
Set a reference to task that caused this task to be run.
|
void |
setParentTask(TaskId taskId)
Set a reference to task that created this request.
|
java.lang.String |
toString() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddress
public void setParentTask(java.lang.String parentTaskNode, long parentTaskId)
TaskAwareRequest
public void setParentTask(TaskId taskId)
TransportRequest
setParentTask
in interface TaskAwareRequest
setParentTask
in class TransportRequest
public TaskId getParentTask()
TransportRequest
TaskId.EMPTY_TASK_ID
, meaning "there is no parent".getParentTask
in interface TaskAwareRequest
getParentTask
in class TransportRequest
public Task createTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId)
TaskAwareRequest
public java.lang.String getDescription()
TaskAwareRequest
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class TransportRequest
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class TransportRequest
java.io.IOException
public R getRequest()
public java.lang.String getTargetAllocationID()
public long getPrimaryTerm()
public java.lang.String toString()
toString
in class java.lang.Object