Package org.elasticsearch.transport
Class TransportRequest
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportRequest
-
- All Implemented Interfaces:
Streamable
,Writeable
,TaskAwareRequest
- Direct Known Subclasses:
ActionRequest
,BaseNodeRequest
,BroadcastShardRequest
,BytesTransportRequest
,InternalScrollSearchRequest
,LocalAllocateDangledIndices.AllocateDangledRequest
,MasterFaultDetection.MasterPingRequest
,MembershipAction.JoinRequest
,MembershipAction.LeaveRequest
,NodeMappingRefreshAction.NodeMappingRefreshRequest
,NodesFaultDetection.PingRequest
,PublishClusterStateAction.CommitClusterStateRequest
,QuerySearchRequest
,RecoveryCleanFilesRequest
,RecoveryFileChunkRequest
,RecoveryFilesInfoRequest
,RecoveryFinalizeRecoveryRequest
,RecoveryTranslogOperationsRequest
,RecoveryWaitForClusterStateRequest
,ShardFetchRequest
,ShardSearchTransportRequest
,ShardStateAction.FailedShardEntry
,ShardStateAction.StartedShardEntry
,StartRecoveryRequest
,SyncedFlushService.InFlightOpsRequest
,SyncedFlushService.PreShardSyncedFlushRequest
,SyncedFlushService.ShardSyncedFlushRequest
,TransportBroadcastByNodeAction.NodeRequest
,TransportReplicationAction.ConcreteShardRequest
,TransportRequest.Empty
,VerifyNodeRepositoryAction.VerifyNodeRepositoryRequest
,ZenDiscovery.RejoinClusterRequest
public abstract class TransportRequest extends TransportMessage implements TaskAwareRequest
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TransportRequest.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description TransportRequest()
TransportRequest(StreamInput in)
-
Method Summary
Modifier and Type Method 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.-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
-
-
-
Constructor Detail
-
TransportRequest
public TransportRequest()
-
TransportRequest
public TransportRequest(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
setParentTask
public void setParentTask(TaskId taskId)
Set a reference to task that created this request.- Specified by:
setParentTask
in interfaceTaskAwareRequest
-
getParentTask
public TaskId getParentTask()
Get a reference to the task that created this request. Defaults toTaskId.EMPTY_TASK_ID
, meaning "there is no parent".- Specified by:
getParentTask
in interfaceTaskAwareRequest
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Overrides:
readFrom
in classTransportMessage
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classTransportMessage
- Throws:
java.io.IOException
-
-