Module org.elasticsearch.server
Class MasterNodeRequest<Request extends MasterNodeRequest<Request>>
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<Request>
- All Implemented Interfaces:
Writeable
,RefCounted
,TaskAwareRequest
- Direct Known Subclasses:
AcknowledgedRequest
,AddVotingConfigExclusionsRequest
,ClearVotingConfigExclusionsRequest
,CloneSnapshotRequest
,ClusterAllocationExplainRequest
,CompletionPersistentTaskAction.Request
,CreateSnapshotRequest
,DeleteDataStreamAction.Request
,DeleteIndexTemplateRequest
,DeleteSnapshotRequest
,DownsampleAction.Request
,GetFeatureUpgradeStatusRequest
,GetShardSnapshotRequest
,GetSnapshotsRequest
,GetSnapshottableFeaturesRequest
,MasterNodeReadRequest
,PostFeatureUpgradeRequest
,PromoteDataStreamAction.Request
,PutComponentTemplateAction.Request
,PutIndexTemplateRequest
,RemovePersistentTaskAction.Request
,ResetFeatureStateRequest
,RestoreSnapshotRequest
,SnapshotsStatusRequest
,StartPersistentTaskAction.Request
,TransportDeleteComponentTemplateAction.Request
,TransportDeleteComposableIndexTemplateAction.Request
,TransportPutComposableIndexTemplateAction.Request
,UpdateIndexShardSnapshotStatusRequest
,UpdatePersistentTaskStatusAction.Request
public abstract class MasterNodeRequest<Request extends MasterNodeRequest<Request>>
extends ActionRequest
A based request for master based operation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequest
TransportRequest.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
FieldsFields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionfinal TimeValue
final Request
masterNodeTimeout
(String timeout) Specifies how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks.final Request
masterNodeTimeout
(TimeValue timeout) Specifies how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks.void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult, validate
Methods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestId, toString
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, hasReferences, 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.core.RefCounted
mustIncRef
Methods inherited from interface org.elasticsearch.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
DEFAULT_MASTER_NODE_TIMEOUT
-
masterNodeTimeout
-
-
Constructor Details
-
MasterNodeRequest
protected MasterNodeRequest() -
MasterNodeRequest
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in classActionRequest
- Throws:
IOException
-
masterNodeTimeout
Specifies how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks. The valueTimeValue.MINUS_ONE
means to wait forever. -
masterNodeTimeout
Specifies how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks. The valueTimeValue.MINUS_ONE
means to wait forever. -
masterNodeTimeout
- Returns:
- how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks. The
value
TimeValue.MINUS_ONE
means to wait forever.
-