Package org.elasticsearch.transport
Class TransportRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
- All Implemented Interfaces:
Writeable
,org.elasticsearch.core.RefCounted
,TaskAwareRequest
- Direct Known Subclasses:
ActionRequest
,ApplyCommitRequest
,BaseNodeRequest
,BroadcastShardRequest
,BytesTransportRequest
,FollowersChecker.FollowerCheckRequest
,InternalScrollSearchRequest
,JoinRequest
,LocalAllocateDangledIndices.AllocateDangledRequest
,MasterFaultDetection.MasterPingRequest
,MembershipAction.JoinRequest
,MembershipAction.LeaveRequest
,NodesFaultDetection.PingRequest
,PeersRequest
,PreVoteRequest
,PublishClusterStateAction.CommitClusterStateRequest
,QuerySearchRequest
,RecoveryTransportRequest
,ReestablishRecoveryRequest
,ShardFetchRequest
,ShardSearchRequest
,ShardStateAction.FailedShardEntry
,ShardStateAction.StartedShardEntry
,StartJoinRequest
,StartRecoveryRequest
,SyncedFlushService.InFlightOpsRequest
,SyncedFlushService.PreShardSyncedFlushRequest
,SyncedFlushService.ShardSyncedFlushRequest
,TransportBroadcastByNodeAction.NodeRequest
,TransportReplicationAction.ConcreteShardRequest
,TransportRequest.Empty
,UnicastZenPing.UnicastPingRequest
,ValidateJoinRequest
,VerifyNodeRepositoryAction.VerifyNodeRepositoryRequest
,ZenDiscovery.RejoinClusterRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet a reference to the task that created this request.void
setParentTask(TaskId taskId)
Set a reference to task that created this request.toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRef
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Constructor Details
-
TransportRequest
public TransportRequest() -
TransportRequest
- Throws:
IOException
-
-
Method Details
-
setParentTask
Set a reference to task that created this request.- Specified by:
setParentTask
in interfaceTaskAwareRequest
-
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
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
toString
-