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.EmptyNested 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
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionfinal TimeValuefinal RequestmasterNodeTimeout(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 RequestmasterNodeTimeout(TimeValue timeout) Specifies how long to wait when the master has not been discovered yet, or is disconnected, or is busy processing other tasks.voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ActionRequest
getShouldStoreResult, validateMethods inherited from class org.elasticsearch.transport.TransportRequest
getParentTask, getRequestId, setParentTask, setRequestId, toStringMethods 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
-
Field Details
-
DEFAULT_MASTER_NODE_TIMEOUT
-
masterNodeTimeout
-
-
Constructor Details
-
MasterNodeRequest
protected MasterNodeRequest() -
MasterNodeRequest
- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin 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_ONEmeans 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_ONEmeans 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_ONEmeans to wait forever.
-