java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
- All Implemented Interfaces:
Writeable,RefCounted,TaskAwareRequest
- Direct Known Subclasses:
ActionRequest,ApplyCommitRequest,BroadcastShardRequest,BytesTransportRequest,CanMatchNodeRequest,FollowersChecker.FollowerCheckRequest,HealthApiStatsAction.Request.Node,IndexModeStatsActionType.NodeRequest,InternalScrollSearchRequest,JoinRequest,LocalAllocateDangledIndices.AllocateDangledRequest,NodeFindDanglingIndexRequest,NodeListDanglingIndicesRequest,NodePrevalidateShardPathRequest,NodesReloadSecureSettingsRequest.NodeRequest,PeersRequest,PreVoteRequest,QuerySearchRequest,RankFeatureShardRequest,RecoveryTransportRequest,ReestablishRecoveryRequest,ShardFetchRequest,ShardSearchRequest,ShardStateAction.FailedShardEntry,ShardStateAction.StartedShardEntry,StartJoinRequest,StartRecoveryRequest,TransportClusterStatsAction.ClusterStatsNodeRequest,TransportNodesCapabilitiesAction.NodeCapabilitiesRequest,TransportNodesFeaturesAction.NodeFeaturesRequest,TransportNodesHotThreadsAction.NodeRequest,TransportNodesInfoAction.NodeInfoRequest,TransportNodesListGatewayStartedShards.NodeRequest,TransportNodesListShardStoreMetadata.NodeRequest,TransportNodesSnapshotsStatus.NodeRequest,TransportNodesStatsAction.NodeStatsRequest,TransportNodesUsageAction.NodeUsageRequest,TransportReplicationAction.ConcreteShardRequest,ValidateJoinRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet a reference to the task that created this request.longGets the request ID.voidsetParentTask(TaskId taskId) Set a reference to task that created this request.voidsetRequestId(long requestId) Set the request ID of this request.toString()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRefMethods 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:
setParentTaskin interfaceTaskAwareRequest
-
getParentTask
Get a reference to the task that created this request. Defaults toTaskId.EMPTY_TASK_ID, meaning "there is no parent".- Specified by:
getParentTaskin interfaceTaskAwareRequest
-
setRequestId
public void setRequestId(long requestId) Set the request ID of this request.- Specified by:
setRequestIdin interfaceTaskAwareRequest
-
getRequestId
public long getRequestId()Description copied from interface:TaskAwareRequestGets the request ID. Defaults to -1, meaning "no request ID is set".- Specified by:
getRequestIdin interfaceTaskAwareRequest
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
toString
-