org.elasticsearch.action.support.master
Class MasterNodeOperationRequest

java.lang.Object
  extended by org.elasticsearch.action.support.master.MasterNodeOperationRequest
All Implemented Interfaces:
ActionRequest, Streamable
Direct Known Subclasses:
CloseIndexRequest, ClusterHealthRequest, ClusterStateRequest, CreateIndexRequest, DeleteIndexRequest, DeleteIndexTemplateRequest, DeleteMappingRequest, IndicesAliasesRequest, IndicesExistsRequest, MappingUpdatedAction.MappingUpdatedRequest, NodesShutdownRequest, OpenIndexRequest, PutIndexTemplateRequest, PutMappingRequest, UpdateSettingsRequest

public abstract class MasterNodeOperationRequest
extends java.lang.Object
implements ActionRequest

A based request for master based operation.


Constructor Summary
MasterNodeOperationRequest()
           
 
Method Summary
 boolean listenerThreaded()
          Should the response listener be executed on a thread or not.
 MasterNodeOperationRequest listenerThreaded(boolean listenerThreaded)
          Sets if the response listener be executed on a thread or not.
 TimeValue masterNodeTimeout()
           
 MasterNodeOperationRequest masterNodeTimeout(java.lang.String timeout)
          A timeout value in case the master has not been discovered yet or disconnected.
 MasterNodeOperationRequest masterNodeTimeout(TimeValue timeout)
          A timeout value in case the master has not been discovered yet or disconnected.
 void readFrom(StreamInput in)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.action.ActionRequest
validate
 

Constructor Detail

MasterNodeOperationRequest

public MasterNodeOperationRequest()
Method Detail

listenerThreaded

public boolean listenerThreaded()
Description copied from interface: ActionRequest
Should the response listener be executed on a thread or not.

When not executing on a thread, it will either be executed on the calling thread, or on an expensive, IO based, thread.

Specified by:
listenerThreaded in interface ActionRequest

listenerThreaded

public MasterNodeOperationRequest listenerThreaded(boolean listenerThreaded)
Description copied from interface: ActionRequest
Sets if the response listener be executed on a thread or not.

Specified by:
listenerThreaded in interface ActionRequest

masterNodeTimeout

public MasterNodeOperationRequest masterNodeTimeout(TimeValue timeout)
A timeout value in case the master has not been discovered yet or disconnected.


masterNodeTimeout

public MasterNodeOperationRequest masterNodeTimeout(java.lang.String timeout)
A timeout value in case the master has not been discovered yet or disconnected.


masterNodeTimeout

public TimeValue masterNodeTimeout()

readFrom

public void readFrom(StreamInput in)
              throws java.io.IOException
Specified by:
readFrom in interface Streamable
Throws:
java.io.IOException

writeTo

public void writeTo(StreamOutput out)
             throws java.io.IOException
Specified by:
writeTo in interface Streamable
Throws:
java.io.IOException