org.elasticsearch.action.admin.indices.close
Class CloseIndexRequest
java.lang.Object
org.elasticsearch.action.support.master.MasterNodeOperationRequest
org.elasticsearch.action.admin.indices.close.CloseIndexRequest
- All Implemented Interfaces:
- ActionRequest, Streamable
public class CloseIndexRequest
- extends MasterNodeOperationRequest
A request to close an index.
Constructor Summary |
CloseIndexRequest(java.lang.String index)
Constructs a new delete index request for the specified index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CloseIndexRequest
public CloseIndexRequest(java.lang.String index)
- Constructs a new delete index request for the specified index.
validate
public ActionRequestValidationException validate()
timeout
public CloseIndexRequest timeout(TimeValue timeout)
- Timeout to wait for the index deletion to be acknowledged by current cluster nodes. Defaults
to 10s.
timeout
public CloseIndexRequest timeout(java.lang.String timeout)
- Timeout to wait for the index deletion to be acknowledged by current cluster nodes. Defaults
to 10s.
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Overrides:
readFrom
in class MasterNodeOperationRequest
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Overrides:
writeTo
in class MasterNodeOperationRequest
- Throws:
java.io.IOException