public abstract class ChildTaskActionRequest<Request extends ActionRequest<Request>> extends ActionRequest<Request>
TransportRequest.Empty
headers
Modifier | Constructor and Description |
---|---|
protected |
ChildTaskActionRequest() |
protected |
ChildTaskActionRequest(ActionRequest request) |
Modifier and Type | Method and Description |
---|---|
Task |
createTask(long id,
String type,
String action)
Returns the task object that should be used to keep track of the processing of the request.
|
Task |
createTask(long id,
String type,
String action,
TaskId parentTaskId) |
void |
readFrom(StreamInput in) |
void |
setParentTask(String parentTaskNode,
long parentTaskId) |
void |
writeTo(StreamOutput out) |
validate
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
protected ChildTaskActionRequest()
protected ChildTaskActionRequest(ActionRequest request)
public void setParentTask(String parentTaskNode, long parentTaskId)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionRequest<Request extends ActionRequest<Request>>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionRequest<Request extends ActionRequest<Request>>
IOException
public final Task createTask(long id, String type, String action)
TransportRequest
createTask
in class TransportRequest
Copyright © 2009–2016. All rights reserved.