public abstract class ChildTaskActionRequest<Request extends ActionRequest<Request>> extends ActionRequest<Request>
TransportRequest.Empty
Modifier | Constructor and Description |
---|---|
protected |
ChildTaskActionRequest() |
Modifier and Type | Method and Description |
---|---|
Task |
createTask(long id,
java.lang.String type,
java.lang.String action)
Returns the task object that should be used to keep track of the processing of the request.
|
Task |
createTask(long id,
java.lang.String type,
java.lang.String action,
TaskId parentTaskId) |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
setParentTask(java.lang.String parentTaskNode,
long parentTaskId) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
validate
getDescription
remoteAddress, remoteAddress
public void setParentTask(java.lang.String parentTaskNode, long parentTaskId)
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionRequest<Request extends ActionRequest<Request>>
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionRequest<Request extends ActionRequest<Request>>
java.io.IOException
public final Task createTask(long id, java.lang.String type, java.lang.String action)
TransportRequest
createTask
in class TransportRequest