Module org.elasticsearch.server
Class CloseIndexRequest
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportRequest
org.elasticsearch.action.ActionRequest
org.elasticsearch.action.support.master.MasterNodeRequest<Request>
org.elasticsearch.action.support.master.AcknowledgedRequest<CloseIndexRequest>
org.elasticsearch.action.admin.indices.close.CloseIndexRequest
- All Implemented Interfaces:
- IndicesRequest,- IndicesRequest.Replaceable,- AckedRequest,- Writeable,- RefCounted,- TaskAwareRequest
public class CloseIndexRequest
extends AcknowledgedRequest<CloseIndexRequest>
implements IndicesRequest.Replaceable
A request to close an index.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.elasticsearch.transport.TransportRequestTransportRequest.EmptyNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequestIndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.action.support.master.AcknowledgedRequestDEFAULT_ACK_TIMEOUT, timeoutFields inherited from class org.elasticsearch.action.support.master.MasterNodeRequestDEFAULT_MASTER_NODE_TIMEOUT, masterNodeTimeout
- 
Constructor SummaryConstructorsConstructorDescriptionCloseIndexRequest(String... indices) Constructs a new close index request for the specified index.
- 
Method SummaryModifier and TypeMethodDescriptionString[]indices()The indices to be closedSets the indices to be closedSpecifies what type of requested indices to ignore and how to deal with wildcard expressions.indicesOptions(IndicesOptions indicesOptions) Specifies what type of requested indices to ignore and how to deal wild wildcard expressions.validate()waitForActiveShards(ActiveShardCount waitForActiveShards) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.support.master.AcknowledgedRequestackTimeout, timeout, timeout, timeoutMethods inherited from class org.elasticsearch.action.support.master.MasterNodeRequestmasterNodeTimeout, masterNodeTimeout, masterNodeTimeoutMethods inherited from class org.elasticsearch.action.ActionRequestgetShouldStoreResultMethods inherited from class org.elasticsearch.transport.TransportRequestgetParentTask, setParentTask, toStringMethods inherited from class org.elasticsearch.transport.TransportMessagedecRef, hasReferences, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.ack.AckedRequestmasterNodeTimeoutMethods inherited from interface org.elasticsearch.action.IndicesRequestincludeDataStreamsMethods inherited from interface org.elasticsearch.action.IndicesRequest.ReplaceableallowsRemoteIndicesMethods inherited from interface org.elasticsearch.tasks.TaskAwareRequestcreateTask, getDescription, setParentTask
- 
Constructor Details- 
CloseIndexRequest- Throws:
- IOException
 
- 
CloseIndexRequestpublic CloseIndexRequest()
- 
CloseIndexRequestConstructs a new close index request for the specified index.
 
- 
- 
Method Details- 
validate- Specified by:
- validatein class- ActionRequest
 
- 
indicesThe indices to be closed- Specified by:
- indicesin interface- IndicesRequest
- Returns:
- the indices to be closed
 
- 
indicesSets the indices to be closed- Specified by:
- indicesin interface- IndicesRequest.Replaceable
- Parameters:
- indices- the indices to be closed
- Returns:
- the request itself
 
- 
indicesOptionsSpecifies what type of requested indices to ignore and how to deal with wildcard expressions. For example indices that don't exist.- Specified by:
- indicesOptionsin interface- IndicesRequest
- Returns:
- the desired behaviour regarding indices to ignore and wildcard indices expressions
 
- 
indicesOptionsSpecifies what type of requested indices to ignore and how to deal wild wildcard expressions. For example indices that don't exist.- Parameters:
- indicesOptions- the desired behaviour regarding indices to ignore and wildcard indices expressions
- Returns:
- the request itself
 
- 
waitForActiveShards
- 
waitForActiveShards
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Overrides:
- writeToin class- AcknowledgedRequest<CloseIndexRequest>
- Throws:
- IOException
 
 
-