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.Empty
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic org.elasticsearch.core.TimeValue
protected org.elasticsearch.core.TimeValue
-
Constructor Summary
ModifierConstructorDescriptionprotected
protected
-
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.core.TimeValue
masterNodeTimeout(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.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, setParentTask, toString
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, 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.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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Overrides:
writeTo
in 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()
-