org.elasticsearch.client.support
Class AbstractIndicesAdminClient

java.lang.Object
  extended by org.elasticsearch.client.support.AbstractIndicesAdminClient
All Implemented Interfaces:
IndicesAdminClient, InternalIndicesAdminClient
Direct Known Subclasses:
InternalTransportIndicesAdminClient, NodeIndicesAdminClient

public abstract class AbstractIndicesAdminClient
extends java.lang.Object
implements InternalIndicesAdminClient


Constructor Summary
AbstractIndicesAdminClient()
           
 
Method Summary
 IndicesAliasesRequestBuilder prepareAliases()
          Allows to add/remove aliases from indices.
 AnalyzeRequestBuilder prepareAnalyze(java.lang.String index, java.lang.String text)
          Analyze text under the provided index.
 ClearIndicesCacheRequestBuilder prepareClearCache(java.lang.String... indices)
          Clear indices cache.
 CloseIndexRequestBuilder prepareClose(java.lang.String index)
          Closes an index based on the index name.
 CreateIndexRequestBuilder prepareCreate(java.lang.String index)
          Creates an index using an explicit request allowing to specify the settings of the index.
 DeleteIndexRequestBuilder prepareDelete(java.lang.String... indices)
          Deletes an index based on the index name.
 DeleteMappingRequestBuilder prepareDeleteMapping(java.lang.String... indices)
          Deletes mapping definition for a type into one or more indices.
 DeleteIndexTemplateRequestBuilder prepareDeleteTemplate(java.lang.String name)
          Deletes an index template.
 IndicesExistsRequestBuilder prepareExists(java.lang.String... indices)
          Indices exists.
 FlushRequestBuilder prepareFlush(java.lang.String... indices)
          Explicitly flush one or more indices (releasing memory from the node).
 GatewaySnapshotRequestBuilder prepareGatewaySnapshot(java.lang.String... indices)
          Explicitly perform gateway snapshot for one or more indices.
 OpenIndexRequestBuilder prepareOpen(java.lang.String index)
          Opens an index based on the index name.
 OptimizeRequestBuilder prepareOptimize(java.lang.String... indices)
          Explicitly optimize one or more indices into a the number of segments.
 PutMappingRequestBuilder preparePutMapping(java.lang.String... indices)
          Add mapping definition for a type into one or more indices.
 PutIndexTemplateRequestBuilder preparePutTemplate(java.lang.String name)
          Puts an index template.
 RefreshRequestBuilder prepareRefresh(java.lang.String... indices)
          Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).
 IndicesSegmentsRequestBuilder prepareSegments(java.lang.String... indices)
          The segments of one or more indices.
 IndicesStatusRequestBuilder prepareStatus(java.lang.String... indices)
          The status of one or more indices.
 UpdateSettingsRequestBuilder prepareUpdateSettings(java.lang.String... indices)
          Update indices settings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.client.internal.InternalIndicesAdminClient
threadPool
 
Methods inherited from interface org.elasticsearch.client.IndicesAdminClient
aliases, aliases, analyze, analyze, clearCache, clearCache, close, close, create, create, delete, delete, deleteMapping, deleteMapping, deleteTemplate, deleteTemplate, exists, exists, flush, flush, gatewaySnapshot, gatewaySnapshot, open, open, optimize, optimize, putMapping, putMapping, putTemplate, putTemplate, refresh, refresh, segments, segments, status, status, updateSettings, updateSettings
 

Constructor Detail

AbstractIndicesAdminClient

public AbstractIndicesAdminClient()
Method Detail

prepareExists

public IndicesExistsRequestBuilder prepareExists(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Indices exists.

Specified by:
prepareExists in interface IndicesAdminClient

prepareAliases

public IndicesAliasesRequestBuilder prepareAliases()
Description copied from interface: IndicesAdminClient
Allows to add/remove aliases from indices.

Specified by:
prepareAliases in interface IndicesAdminClient

prepareClearCache

public ClearIndicesCacheRequestBuilder prepareClearCache(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Clear indices cache.

Specified by:
prepareClearCache in interface IndicesAdminClient

prepareCreate

public CreateIndexRequestBuilder prepareCreate(java.lang.String index)
Description copied from interface: IndicesAdminClient
Creates an index using an explicit request allowing to specify the settings of the index.

Specified by:
prepareCreate in interface IndicesAdminClient
Parameters:
index - The index name to create

prepareDelete

public DeleteIndexRequestBuilder prepareDelete(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Deletes an index based on the index name.

Specified by:
prepareDelete in interface IndicesAdminClient
Parameters:
indices - The indices to delete. Empty array to delete all indices.

prepareClose

public CloseIndexRequestBuilder prepareClose(java.lang.String index)
Description copied from interface: IndicesAdminClient
Closes an index based on the index name.

Specified by:
prepareClose in interface IndicesAdminClient
Parameters:
index - The index name to close

prepareOpen

public OpenIndexRequestBuilder prepareOpen(java.lang.String index)
Description copied from interface: IndicesAdminClient
Opens an index based on the index name.

Specified by:
prepareOpen in interface IndicesAdminClient
Parameters:
index - The index name to close

prepareFlush

public FlushRequestBuilder prepareFlush(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Explicitly flush one or more indices (releasing memory from the node).

Specified by:
prepareFlush in interface IndicesAdminClient

prepareGatewaySnapshot

public GatewaySnapshotRequestBuilder prepareGatewaySnapshot(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Explicitly perform gateway snapshot for one or more indices.

Specified by:
prepareGatewaySnapshot in interface IndicesAdminClient

preparePutMapping

public PutMappingRequestBuilder preparePutMapping(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Add mapping definition for a type into one or more indices.

Specified by:
preparePutMapping in interface IndicesAdminClient

prepareDeleteMapping

public DeleteMappingRequestBuilder prepareDeleteMapping(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Deletes mapping definition for a type into one or more indices.

Specified by:
prepareDeleteMapping in interface IndicesAdminClient

prepareOptimize

public OptimizeRequestBuilder prepareOptimize(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Explicitly optimize one or more indices into a the number of segments.

Specified by:
prepareOptimize in interface IndicesAdminClient

prepareRefresh

public RefreshRequestBuilder prepareRefresh(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).

Specified by:
prepareRefresh in interface IndicesAdminClient

prepareStatus

public IndicesStatusRequestBuilder prepareStatus(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
The status of one or more indices.

Specified by:
prepareStatus in interface IndicesAdminClient

prepareSegments

public IndicesSegmentsRequestBuilder prepareSegments(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
The segments of one or more indices.

Specified by:
prepareSegments in interface IndicesAdminClient

prepareUpdateSettings

public UpdateSettingsRequestBuilder prepareUpdateSettings(java.lang.String... indices)
Description copied from interface: IndicesAdminClient
Update indices settings.

Specified by:
prepareUpdateSettings in interface IndicesAdminClient

prepareAnalyze

public AnalyzeRequestBuilder prepareAnalyze(java.lang.String index,
                                            java.lang.String text)
Description copied from interface: IndicesAdminClient
Analyze text under the provided index.

Specified by:
prepareAnalyze in interface IndicesAdminClient
Parameters:
index - The index name
text - The text to analyze

preparePutTemplate

public PutIndexTemplateRequestBuilder preparePutTemplate(java.lang.String name)
Description copied from interface: IndicesAdminClient
Puts an index template.

Specified by:
preparePutTemplate in interface IndicesAdminClient
Parameters:
name - The name of the template.

prepareDeleteTemplate

public DeleteIndexTemplateRequestBuilder prepareDeleteTemplate(java.lang.String name)
Description copied from interface: IndicesAdminClient
Deletes an index template.

Specified by:
prepareDeleteTemplate in interface IndicesAdminClient
Parameters:
name - The name of the template.