org.elasticsearch.action.admin.indices.settings
Class UpdateSettingsRequest

java.lang.Object
  extended by org.elasticsearch.action.support.master.MasterNodeOperationRequest
      extended by org.elasticsearch.action.admin.indices.settings.UpdateSettingsRequest
All Implemented Interfaces:
ActionRequest, Streamable

public class UpdateSettingsRequest
extends MasterNodeOperationRequest


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
 
Constructor Summary
UpdateSettingsRequest(Settings settings, String... indices)
          Constructs a new request to create an index with the specified name and settings.
UpdateSettingsRequest(String... indices)
          Constructs a new request to create an index with the specified name and settings.
 
Method Summary
 UpdateSettingsRequest indices(String... indices)
           
 void readFrom(StreamInput in)
           
 UpdateSettingsRequest settings(Map source)
          The settings to crete the index with (either json/yaml/properties format)
 UpdateSettingsRequest settings(Settings.Builder settings)
          The settings to created the index with.
 UpdateSettingsRequest settings(Settings settings)
          The settings to created the index with.
 UpdateSettingsRequest settings(String source)
          The settings to crete the index with (either json/yaml/properties format)
 ActionRequestValidationException validate()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest
listenerThreaded, listenerThreaded, masterNodeTimeout, masterNodeTimeout, masterNodeTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateSettingsRequest

public UpdateSettingsRequest(String... indices)
Constructs a new request to create an index with the specified name and settings.


UpdateSettingsRequest

public UpdateSettingsRequest(Settings settings,
                             String... indices)
Constructs a new request to create an index with the specified name and settings.

Method Detail

validate

public ActionRequestValidationException validate()

indices

public UpdateSettingsRequest indices(String... indices)

settings

public UpdateSettingsRequest settings(Settings settings)
The settings to created the index with.


settings

public UpdateSettingsRequest settings(Settings.Builder settings)
The settings to created the index with.


settings

public UpdateSettingsRequest settings(String source)
The settings to crete the index with (either json/yaml/properties format)


settings

public UpdateSettingsRequest settings(Map source)
The settings to crete the index with (either json/yaml/properties format)


readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Overrides:
readFrom in class MasterNodeOperationRequest
Throws:
IOException

writeTo

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


Copyright © 2009-2012. All Rights Reserved.