public class ChildTaskRequest extends TransportRequest
TransportRequest.Empty
headers
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) |
getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
protected ChildTaskRequest()
protected ChildTaskRequest(TransportRequest parentTaskRequest)
public void setParentTask(String parentTaskNode, long parentTaskId)
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class TransportMessage<TransportRequest>
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class TransportMessage<TransportRequest>
IOException
public final Task createTask(long id, String type, String action)
TransportRequest
createTask
in class TransportRequest
Copyright © 2009–2016. All rights reserved.