public class ChildTaskRequest extends TransportRequest
TransportRequest.Emptyheaders| Modifier | Constructor and Description |
|---|---|
protected |
ChildTaskRequest() |
protected |
ChildTaskRequest(TransportRequest parentTaskRequest) |
| 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) |
getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextprotected ChildTaskRequest()
protected ChildTaskRequest(TransportRequest parentTaskRequest)
public void setParentTask(String parentTaskNode, long parentTaskId)
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class TransportMessage<TransportRequest>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class TransportMessage<TransportRequest>IOExceptionpublic final Task createTask(long id, String type, String action)
TransportRequestcreateTask in class TransportRequestCopyright © 2009–2017. All rights reserved.