public abstract class TransportRequest extends TransportMessage
| Modifier and Type | Class and Description |
|---|---|
static class |
TransportRequest.Empty |
| Constructor and Description |
|---|
TransportRequest() |
| 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.
|
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.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddresspublic void setParentTask(java.lang.String parentTaskNode,
long parentTaskId)
public void setParentTask(TaskId taskId)
public TaskId getParentTask()
TaskId.EMPTY_TASK_ID, meaning "there is no parent".public Task createTask(long id, java.lang.String type, java.lang.String action, TaskId parentTaskId)
public java.lang.String getDescription()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class TransportMessagejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class TransportMessagejava.io.IOException