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, ClusterRerouteRequest, ClusterStateRequest, ClusterUpdateSettingsRequest, CreateIndexRequest, DeleteIndexRequest, DeleteIndexTemplateRequest, DeleteMappingRequest, DeleteWarmerRequest, IndicesAliasesRequest, IndicesExistsRequest, MappingUpdatedAction.MappingUpdatedRequest, NodesShutdownRequest, OpenIndexRequest, PutIndexTemplateRequest, PutMappingRequest, PutWarmerRequest, UpdateSettingsRequest

public abstract class MasterNodeOperationRequest
extends Object
implements ActionRequest

A based request for master based operation.


Field Summary
static TimeValue DEFAULT_MASTER_NODE_TIMEOUT
           
protected  TimeValue masterNodeTimeout
           
 
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(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
 

Field Detail

DEFAULT_MASTER_NODE_TIMEOUT

public static TimeValue DEFAULT_MASTER_NODE_TIMEOUT

masterNodeTimeout

protected TimeValue masterNodeTimeout
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(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 IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

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


Copyright © 2009-2012. All Rights Reserved.