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,org.elasticsearch.core.RefCounted,TaskAwareRequest
- Direct Known Subclasses:
AcknowledgedRequest,AddVotingConfigExclusionsRequest,ClearVotingConfigExclusionsRequest,CloneSnapshotRequest,ClusterAllocationExplainRequest,CompletionPersistentTaskAction.Request,CreateSnapshotRequest,DeleteComponentTemplateAction.Request,DeleteComposableIndexTemplateAction.Request,DeleteIndexTemplateRequest,DeleteSnapshotRequest,GetSnapshotsRequest,GetSnapshottableFeaturesRequest,MasterNodeReadRequest,PutComponentTemplateAction.Request,PutComposableIndexTemplateAction.Request,PutIndexTemplateRequest,RemovePersistentTaskAction.Request,ResetFeatureStateRequest,RestoreSnapshotRequest,SnapshotsStatusRequest,StartPersistentTaskAction.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
FieldsModifier and TypeFieldDescriptionstatic org.elasticsearch.core.TimeValueprotected org.elasticsearch.core.TimeValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.core.TimeValuemasterNodeTimeout(String timeout)A timeout value in case the master has not been discovered yet or disconnected.masterNodeTimeout(org.elasticsearch.core.TimeValue timeout)A timeout value in case the master has not been discovered yet or disconnected.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, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, 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.tasks.TaskAwareRequest
createTask, getDescription, setParentTask
-
Field Details
-
DEFAULT_MASTER_NODE_TIMEOUT
public static final org.elasticsearch.core.TimeValue DEFAULT_MASTER_NODE_TIMEOUT -
masterNodeTimeout
protected org.elasticsearch.core.TimeValue 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
A timeout value in case the master has not been discovered yet or disconnected. -
masterNodeTimeout
A timeout value in case the master has not been discovered yet or disconnected. -
masterNodeTimeout
public final org.elasticsearch.core.TimeValue masterNodeTimeout()
-