Class TransportRequest

java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.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

public abstract class TransportRequest
extends TransportMessage
implements TaskAwareRequest
  • Constructor Details

    • TransportRequest

      public TransportRequest()
    • TransportRequest

      public TransportRequest​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • setParentTask

      public void setParentTask​(TaskId taskId)
      Set a reference to task that created this request.
      Specified by:
      setParentTask in interface TaskAwareRequest
    • getParentTask

      public TaskId getParentTask()
      Get a reference to the task that created this request. Defaults to TaskId.EMPTY_TASK_ID, meaning "there is no parent".
      Specified by:
      getParentTask in interface TaskAwareRequest
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object