public abstract class TransportRequest extends TransportMessage implements TaskAwareRequest
Modifier and Type | Class and Description |
---|---|
static class |
TransportRequest.Empty |
Constructor and Description |
---|
TransportRequest() |
Modifier and Type | Method and Description |
---|---|
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(TaskId taskId)
Set a reference to task that created this request.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
public void setParentTask(TaskId taskId)
setParentTask
in interface TaskAwareRequest
public TaskId getParentTask()
TaskId.EMPTY_TASK_ID
, meaning "there is no parent".getParentTask
in interface TaskAwareRequest
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class TransportMessage
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class TransportMessage
java.io.IOException