org.elasticsearch.action.admin.indices.template.delete
Class DeleteIndexTemplateRequest

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

public class DeleteIndexTemplateRequest
extends MasterNodeOperationRequest

A request to delete an index template.


Field Summary
 
Fields inherited from class org.elasticsearch.action.support.master.MasterNodeOperationRequest
DEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
 
Constructor Summary
DeleteIndexTemplateRequest(String name)
          Constructs a new delete index request for the specified name.
 
Method Summary
 void readFrom(StreamInput in)
           
 DeleteIndexTemplateRequest timeout(String timeout)
          Timeout to wait for the index template deletion to be acknowledged by current cluster nodes.
 DeleteIndexTemplateRequest timeout(TimeValue timeout)
          Timeout to wait for the index template deletion to be acknowledged by current cluster nodes.
 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

DeleteIndexTemplateRequest

public DeleteIndexTemplateRequest(String name)
Constructs a new delete index request for the specified name.

Method Detail

validate

public ActionRequestValidationException validate()

timeout

public DeleteIndexTemplateRequest timeout(TimeValue timeout)
Timeout to wait for the index template deletion to be acknowledged by current cluster nodes. Defaults to 10s.


timeout

public DeleteIndexTemplateRequest timeout(String timeout)
Timeout to wait for the index template deletion to be acknowledged by current cluster nodes. Defaults to 10s.


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.