public abstract class AbstractIndicesAdminClient extends Object implements IndicesAdminClient
Constructor and Description |
---|
AbstractIndicesAdminClient() |
Modifier and Type | Method and Description |
---|---|
ActionFuture<IndicesAliasesResponse> |
aliases(IndicesAliasesRequest request)
Allows to add/remove aliases from indices.
|
void |
aliases(IndicesAliasesRequest request,
ActionListener<IndicesAliasesResponse> listener)
Allows to add/remove aliases from indices.
|
ActionFuture<AliasesExistResponse> |
aliasesExist(GetAliasesRequest request)
Check to existence of index aliases.
|
void |
aliasesExist(GetAliasesRequest request,
ActionListener<AliasesExistResponse> listener)
Check the existence of specified index aliases.
|
ActionFuture<AnalyzeResponse> |
analyze(AnalyzeRequest request)
Analyze text under the provided index.
|
void |
analyze(AnalyzeRequest request,
ActionListener<AnalyzeResponse> listener)
Analyze text under the provided index.
|
ActionFuture<ClearIndicesCacheResponse> |
clearCache(ClearIndicesCacheRequest request)
Clear indices cache.
|
void |
clearCache(ClearIndicesCacheRequest request,
ActionListener<ClearIndicesCacheResponse> listener)
Clear indices cache.
|
ActionFuture<CloseIndexResponse> |
close(CloseIndexRequest request)
Closes an index based on the index name.
|
void |
close(CloseIndexRequest request,
ActionListener<CloseIndexResponse> listener)
Closes an index based on the index name.
|
ActionFuture<CreateIndexResponse> |
create(CreateIndexRequest request)
Creates an index using an explicit request allowing to specify the settings of the index.
|
void |
create(CreateIndexRequest request,
ActionListener<CreateIndexResponse> listener)
Creates an index using an explicit request allowing to specify the settings of the index.
|
ActionFuture<DeleteIndexResponse> |
delete(DeleteIndexRequest request)
Deletes an index based on the index name.
|
void |
delete(DeleteIndexRequest request,
ActionListener<DeleteIndexResponse> listener)
Deletes an index based on the index name.
|
ActionFuture<DeleteMappingResponse> |
deleteMapping(DeleteMappingRequest request)
Deletes mapping (and all its data) from one or more indices.
|
void |
deleteMapping(DeleteMappingRequest request,
ActionListener<DeleteMappingResponse> listener)
Deletes mapping definition for a type into one or more indices.
|
ActionFuture<DeleteIndexTemplateResponse> |
deleteTemplate(DeleteIndexTemplateRequest request)
Deletes index template.
|
void |
deleteTemplate(DeleteIndexTemplateRequest request,
ActionListener<DeleteIndexTemplateResponse> listener)
Deletes an index template.
|
ActionFuture<DeleteWarmerResponse> |
deleteWarmer(DeleteWarmerRequest request)
Deletes an index warmer.
|
void |
deleteWarmer(DeleteWarmerRequest request,
ActionListener<DeleteWarmerResponse> listener)
Deletes an index warmer.
|
ActionFuture<IndicesExistsResponse> |
exists(IndicesExistsRequest request)
Indices Exists.
|
void |
exists(IndicesExistsRequest request,
ActionListener<IndicesExistsResponse> listener)
The status of one or more indices.
|
ActionFuture<FlushResponse> |
flush(FlushRequest request)
Explicitly flush one or more indices (releasing memory from the node).
|
void |
flush(FlushRequest request,
ActionListener<FlushResponse> listener)
Explicitly flush one or more indices (releasing memory from the node).
|
ActionFuture<GetAliasesResponse> |
getAliases(GetAliasesRequest request)
Get specific index aliases that exists in particular indices and / or by name.
|
void |
getAliases(GetAliasesRequest request,
ActionListener<GetAliasesResponse> listener)
Get specific index aliases that exists in particular indices and / or by name.
|
ActionFuture<GetFieldMappingsResponse> |
getFieldMappings(GetFieldMappingsRequest request)
Get the mappings of specific fields
|
void |
getFieldMappings(GetFieldMappingsRequest request,
ActionListener<GetFieldMappingsResponse> listener)
Get the mappings of specific fields
|
ActionFuture<GetIndexResponse> |
getIndex(GetIndexRequest request)
Get index metadata for particular indices.
|
void |
getIndex(GetIndexRequest request,
ActionListener<GetIndexResponse> listener)
Get index metadata for particular indices.
|
ActionFuture<GetMappingsResponse> |
getMappings(GetMappingsRequest request)
Get the complete mappings of one or more types
|
void |
getMappings(GetMappingsRequest request,
ActionListener<GetMappingsResponse> listener)
Get the complete mappings of one or more types
|
ActionFuture<GetSettingsResponse> |
getSettings(GetSettingsRequest request)
Executed a per index settings get request.
|
void |
getSettings(GetSettingsRequest request,
ActionListener<GetSettingsResponse> listener)
Executed a per index settings get request and returns the settings for the indices specified.
|
ActionFuture<GetIndexTemplatesResponse> |
getTemplates(GetIndexTemplatesRequest request)
Gets index template.
|
void |
getTemplates(GetIndexTemplatesRequest request,
ActionListener<GetIndexTemplatesResponse> listener)
Gets an index template.
|
ActionFuture<GetWarmersResponse> |
getWarmers(GetWarmersRequest request)
Returns a map of index warmers for the given get request.
|
void |
getWarmers(GetWarmersRequest request,
ActionListener<GetWarmersResponse> listener)
Returns a map of index warmers for the given get request.
|
ActionFuture<OpenIndexResponse> |
open(OpenIndexRequest request)
Open an index based on the index name.
|
void |
open(OpenIndexRequest request,
ActionListener<OpenIndexResponse> listener)
Open an index based on the index name.
|
ActionFuture<OptimizeResponse> |
optimize(OptimizeRequest request)
Explicitly optimize one or more indices into a the number of segments.
|
void |
optimize(OptimizeRequest request,
ActionListener<OptimizeResponse> listener)
Explicitly optimize one or more indices into a the number of segments.
|
IndicesAliasesRequestBuilder |
prepareAliases()
Allows to add/remove aliases from indices.
|
AliasesExistRequestBuilder |
prepareAliasesExist(String... aliases)
Allows to check to existence of aliases from indices.
|
AnalyzeRequestBuilder |
prepareAnalyze(String text)
Analyze text.
|
AnalyzeRequestBuilder |
prepareAnalyze(String index,
String text)
Analyze text under the provided index.
|
ClearIndicesCacheRequestBuilder |
prepareClearCache(String... indices)
Clear indices cache.
|
CloseIndexRequestBuilder |
prepareClose(String... indices)
Closes one or more indices based on their index name.
|
CreateIndexRequestBuilder |
prepareCreate(String index)
Creates an index using an explicit request allowing to specify the settings of the index.
|
DeleteIndexRequestBuilder |
prepareDelete(String... indices)
Deletes an index based on the index name.
|
DeleteMappingRequestBuilder |
prepareDeleteMapping(String... indices)
Deletes mapping definition for a type into one or more indices.
|
DeleteIndexTemplateRequestBuilder |
prepareDeleteTemplate(String name)
Deletes an index template.
|
DeleteWarmerRequestBuilder |
prepareDeleteWarmer()
Deletes an index warmer.
|
<Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder,IndicesAdminClient>> |
prepareExecute(Action<Request,Response,RequestBuilder,IndicesAdminClient> action)
Prepares a request builder to execute, specified by
Action . |
IndicesExistsRequestBuilder |
prepareExists(String... indices)
Indices exists.
|
FlushRequestBuilder |
prepareFlush(String... indices)
Explicitly flush one or more indices (releasing memory from the node).
|
GetAliasesRequestBuilder |
prepareGetAliases(String... aliases)
Get specific index aliases that exists in particular indices and / or by name.
|
GetFieldMappingsRequestBuilder |
prepareGetFieldMappings(String... indices)
Get the mappings of specific fields
|
GetIndexRequestBuilder |
prepareGetIndex()
Get index metadata for particular indices.
|
GetMappingsRequestBuilder |
prepareGetMappings(String... indices)
Get the complete mappings of one or more types
|
GetSettingsRequestBuilder |
prepareGetSettings(String... indices)
Returns a builder for a per index settings get request.
|
GetIndexTemplatesRequestBuilder |
prepareGetTemplates(String... names)
Gets an index template (optional).
|
GetWarmersRequestBuilder |
prepareGetWarmers(String... indices)
Returns a new builder to fetch index warmer metadata for the given indices.
|
OpenIndexRequestBuilder |
prepareOpen(String... indices)
Opens one or more indices based on their index name.
|
OptimizeRequestBuilder |
prepareOptimize(String... indices)
Explicitly optimize one or more indices into a the number of segments.
|
PutMappingRequestBuilder |
preparePutMapping(String... indices)
Add mapping definition for a type into one or more indices.
|
PutIndexTemplateRequestBuilder |
preparePutTemplate(String name)
Puts an index template.
|
PutWarmerRequestBuilder |
preparePutWarmer(String name)
Puts an index search warmer to be applies when applicable.
|
RecoveryRequestBuilder |
prepareRecoveries(String... indices)
Indices recoveries
|
RefreshRequestBuilder |
prepareRefresh(String... indices)
Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).
|
IndicesSegmentsRequestBuilder |
prepareSegments(String... indices)
The segments of one or more indices.
|
IndicesStatsRequestBuilder |
prepareStats(String... indices)
Indices stats.
|
IndicesStatusRequestBuilder |
prepareStatus(String... indices)
The status of one or more indices.
|
TypesExistsRequestBuilder |
prepareTypesExists(String... index)
Indices exists.
|
UpdateSettingsRequestBuilder |
prepareUpdateSettings(String... indices)
Update indices settings.
|
ValidateQueryRequestBuilder |
prepareValidateQuery(String... indices)
Validate a query for correctness.
|
ActionFuture<PutMappingResponse> |
putMapping(PutMappingRequest request)
Add mapping definition for a type into one or more indices.
|
void |
putMapping(PutMappingRequest request,
ActionListener<PutMappingResponse> listener)
Add mapping definition for a type into one or more indices.
|
ActionFuture<PutIndexTemplateResponse> |
putTemplate(PutIndexTemplateRequest request)
Puts an index template.
|
void |
putTemplate(PutIndexTemplateRequest request,
ActionListener<PutIndexTemplateResponse> listener)
Puts an index template.
|
ActionFuture<PutWarmerResponse> |
putWarmer(PutWarmerRequest request)
Puts an index search warmer to be applies when applicable.
|
void |
putWarmer(PutWarmerRequest request,
ActionListener<PutWarmerResponse> listener)
Puts an index search warmer to be applies when applicable.
|
ActionFuture<RecoveryResponse> |
recoveries(RecoveryRequest request)
Indices recoveries
|
void |
recoveries(RecoveryRequest request,
ActionListener<RecoveryResponse> listener)
Indices recoveries
|
ActionFuture<RefreshResponse> |
refresh(RefreshRequest request)
Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).
|
void |
refresh(RefreshRequest request,
ActionListener<RefreshResponse> listener)
Explicitly refresh one or more indices (making the content indexed since the last refresh searchable).
|
ActionFuture<IndicesSegmentResponse> |
segments(IndicesSegmentsRequest request)
The segments of one or more indices.
|
void |
segments(IndicesSegmentsRequest request,
ActionListener<IndicesSegmentResponse> listener)
The segments of one or more indices.
|
ActionFuture<IndicesStatsResponse> |
stats(IndicesStatsRequest request)
Indices stats.
|
void |
stats(IndicesStatsRequest request,
ActionListener<IndicesStatsResponse> listener)
Indices stats.
|
ActionFuture<IndicesStatusResponse> |
status(IndicesStatusRequest request)
The status of one or more indices.
|
void |
status(IndicesStatusRequest request,
ActionListener<IndicesStatusResponse> listener)
The status of one or more indices.
|
ActionFuture<TypesExistsResponse> |
typesExists(TypesExistsRequest request)
Types Exists.
|
void |
typesExists(TypesExistsRequest request,
ActionListener<TypesExistsResponse> listener)
Types exists
|
ActionFuture<UpdateSettingsResponse> |
updateSettings(UpdateSettingsRequest request)
Updates settings of one or more indices.
|
void |
updateSettings(UpdateSettingsRequest request,
ActionListener<UpdateSettingsResponse> listener)
Updates settings of one or more indices.
|
ActionFuture<ValidateQueryResponse> |
validateQuery(ValidateQueryRequest request)
Validate a query for correctness.
|
void |
validateQuery(ValidateQueryRequest request,
ActionListener<ValidateQueryResponse> listener)
Validate a query for correctness.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, threadPool
public <Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder,IndicesAdminClient>> RequestBuilder prepareExecute(Action<Request,Response,RequestBuilder,IndicesAdminClient> action)
ElasticsearchClient
Action
.prepareExecute
in interface ElasticsearchClient<IndicesAdminClient>
Request
- The request type.Response
- The response type.RequestBuilder
- The request builder.action
- The action type to execute.public ActionFuture<IndicesExistsResponse> exists(IndicesExistsRequest request)
IndicesAdminClient
exists
in interface IndicesAdminClient
request
- The indices exists requestRequests.indicesExistsRequest(String...)
public void exists(IndicesExistsRequest request, ActionListener<IndicesExistsResponse> listener)
IndicesAdminClient
exists
in interface IndicesAdminClient
request
- The indices status requestlistener
- A listener to be notified with a resultRequests.indicesExistsRequest(String...)
public IndicesExistsRequestBuilder prepareExists(String... indices)
IndicesAdminClient
prepareExists
in interface IndicesAdminClient
public ActionFuture<TypesExistsResponse> typesExists(TypesExistsRequest request)
IndicesAdminClient
typesExists
in interface IndicesAdminClient
request
- The types exists requestpublic void typesExists(TypesExistsRequest request, ActionListener<TypesExistsResponse> listener)
IndicesAdminClient
typesExists
in interface IndicesAdminClient
request
- The types existslistener
- A listener to be notified with a resultpublic TypesExistsRequestBuilder prepareTypesExists(String... index)
IndicesAdminClient
prepareTypesExists
in interface IndicesAdminClient
public ActionFuture<IndicesAliasesResponse> aliases(IndicesAliasesRequest request)
IndicesAdminClient
aliases
in interface IndicesAdminClient
request
- The index aliases requestRequests.indexAliasesRequest()
public void aliases(IndicesAliasesRequest request, ActionListener<IndicesAliasesResponse> listener)
IndicesAdminClient
aliases
in interface IndicesAdminClient
request
- The index aliases requestlistener
- A listener to be notified with a resultRequests.indexAliasesRequest()
public IndicesAliasesRequestBuilder prepareAliases()
IndicesAdminClient
prepareAliases
in interface IndicesAdminClient
public ActionFuture<GetAliasesResponse> getAliases(GetAliasesRequest request)
IndicesAdminClient
getAliases
in interface IndicesAdminClient
request
- The result futurepublic void getAliases(GetAliasesRequest request, ActionListener<GetAliasesResponse> listener)
IndicesAdminClient
getAliases
in interface IndicesAdminClient
request
- The index aliases requestlistener
- A listener to be notified with a resultpublic GetAliasesRequestBuilder prepareGetAliases(String... aliases)
IndicesAdminClient
prepareGetAliases
in interface IndicesAdminClient
public ActionFuture<ClearIndicesCacheResponse> clearCache(ClearIndicesCacheRequest request)
IndicesAdminClient
clearCache
in interface IndicesAdminClient
request
- The clear indices cache requestRequests.clearIndicesCacheRequest(String...)
public void aliasesExist(GetAliasesRequest request, ActionListener<AliasesExistResponse> listener)
IndicesAdminClient
aliasesExist
in interface IndicesAdminClient
request
- The index aliases requestlistener
- A listener to be notified with a resultpublic ActionFuture<AliasesExistResponse> aliasesExist(GetAliasesRequest request)
IndicesAdminClient
aliasesExist
in interface IndicesAdminClient
request
- The result futurepublic AliasesExistRequestBuilder prepareAliasesExist(String... aliases)
IndicesAdminClient
prepareAliasesExist
in interface IndicesAdminClient
public ActionFuture<GetIndexResponse> getIndex(GetIndexRequest request)
IndicesAdminClient
getIndex
in interface IndicesAdminClient
request
- The result futurepublic void getIndex(GetIndexRequest request, ActionListener<GetIndexResponse> listener)
IndicesAdminClient
getIndex
in interface IndicesAdminClient
request
- The index aliases requestlistener
- A listener to be notified with a resultpublic GetIndexRequestBuilder prepareGetIndex()
IndicesAdminClient
prepareGetIndex
in interface IndicesAdminClient
public void clearCache(ClearIndicesCacheRequest request, ActionListener<ClearIndicesCacheResponse> listener)
IndicesAdminClient
clearCache
in interface IndicesAdminClient
request
- The clear indices cache requestlistener
- A listener to be notified with a resultRequests.clearIndicesCacheRequest(String...)
public ClearIndicesCacheRequestBuilder prepareClearCache(String... indices)
IndicesAdminClient
prepareClearCache
in interface IndicesAdminClient
public ActionFuture<CreateIndexResponse> create(CreateIndexRequest request)
IndicesAdminClient
create
in interface IndicesAdminClient
request
- The create index requestRequests.createIndexRequest(String)
public void create(CreateIndexRequest request, ActionListener<CreateIndexResponse> listener)
IndicesAdminClient
create
in interface IndicesAdminClient
request
- The create index requestlistener
- A listener to be notified with a resultRequests.createIndexRequest(String)
public CreateIndexRequestBuilder prepareCreate(String index)
IndicesAdminClient
prepareCreate
in interface IndicesAdminClient
index
- The index name to createpublic ActionFuture<DeleteIndexResponse> delete(DeleteIndexRequest request)
IndicesAdminClient
delete
in interface IndicesAdminClient
request
- The delete index requestRequests.deleteIndexRequest(String)
public void delete(DeleteIndexRequest request, ActionListener<DeleteIndexResponse> listener)
IndicesAdminClient
delete
in interface IndicesAdminClient
request
- The delete index requestlistener
- A listener to be notified with a resultRequests.deleteIndexRequest(String)
public DeleteIndexRequestBuilder prepareDelete(String... indices)
IndicesAdminClient
prepareDelete
in interface IndicesAdminClient
indices
- The indices to delete. Use "_all" to delete all indices.public ActionFuture<CloseIndexResponse> close(CloseIndexRequest request)
IndicesAdminClient
close
in interface IndicesAdminClient
request
- The close index requestRequests.closeIndexRequest(String)
public void close(CloseIndexRequest request, ActionListener<CloseIndexResponse> listener)
IndicesAdminClient
close
in interface IndicesAdminClient
request
- The close index requestlistener
- A listener to be notified with a resultRequests.closeIndexRequest(String)
public CloseIndexRequestBuilder prepareClose(String... indices)
IndicesAdminClient
prepareClose
in interface IndicesAdminClient
indices
- The name of the indices to closepublic ActionFuture<OpenIndexResponse> open(OpenIndexRequest request)
IndicesAdminClient
open
in interface IndicesAdminClient
request
- The close index requestRequests.openIndexRequest(String)
public void open(OpenIndexRequest request, ActionListener<OpenIndexResponse> listener)
IndicesAdminClient
open
in interface IndicesAdminClient
request
- The close index requestlistener
- A listener to be notified with a resultRequests.openIndexRequest(String)
public OpenIndexRequestBuilder prepareOpen(String... indices)
IndicesAdminClient
prepareOpen
in interface IndicesAdminClient
indices
- The name of the indices to closepublic ActionFuture<FlushResponse> flush(FlushRequest request)
IndicesAdminClient
flush
in interface IndicesAdminClient
request
- The flush requestRequests.flushRequest(String...)
public void flush(FlushRequest request, ActionListener<FlushResponse> listener)
IndicesAdminClient
flush
in interface IndicesAdminClient
request
- The flush requestlistener
- A listener to be notified with a resultRequests.flushRequest(String...)
public FlushRequestBuilder prepareFlush(String... indices)
IndicesAdminClient
prepareFlush
in interface IndicesAdminClient
public void getMappings(GetMappingsRequest request, ActionListener<GetMappingsResponse> listener)
IndicesAdminClient
getMappings
in interface IndicesAdminClient
public void getFieldMappings(GetFieldMappingsRequest request, ActionListener<GetFieldMappingsResponse> listener)
IndicesAdminClient
getFieldMappings
in interface IndicesAdminClient
public GetMappingsRequestBuilder prepareGetMappings(String... indices)
IndicesAdminClient
prepareGetMappings
in interface IndicesAdminClient
public ActionFuture<GetMappingsResponse> getMappings(GetMappingsRequest request)
IndicesAdminClient
getMappings
in interface IndicesAdminClient
public GetFieldMappingsRequestBuilder prepareGetFieldMappings(String... indices)
IndicesAdminClient
prepareGetFieldMappings
in interface IndicesAdminClient
public ActionFuture<GetFieldMappingsResponse> getFieldMappings(GetFieldMappingsRequest request)
IndicesAdminClient
getFieldMappings
in interface IndicesAdminClient
public ActionFuture<PutMappingResponse> putMapping(PutMappingRequest request)
IndicesAdminClient
putMapping
in interface IndicesAdminClient
request
- The create mapping requestRequests.putMappingRequest(String...)
public void putMapping(PutMappingRequest request, ActionListener<PutMappingResponse> listener)
IndicesAdminClient
putMapping
in interface IndicesAdminClient
request
- The create mapping requestlistener
- A listener to be notified with a resultRequests.putMappingRequest(String...)
public PutMappingRequestBuilder preparePutMapping(String... indices)
IndicesAdminClient
preparePutMapping
in interface IndicesAdminClient
public ActionFuture<DeleteMappingResponse> deleteMapping(DeleteMappingRequest request)
IndicesAdminClient
deleteMapping
in interface IndicesAdminClient
request
- The delete mapping requestRequests.deleteMappingRequest(String...)
public void deleteMapping(DeleteMappingRequest request, ActionListener<DeleteMappingResponse> listener)
IndicesAdminClient
deleteMapping
in interface IndicesAdminClient
request
- The delete mapping requestlistener
- A listener to be notified with a resultRequests.deleteMappingRequest(String...)
public DeleteMappingRequestBuilder prepareDeleteMapping(String... indices)
IndicesAdminClient
prepareDeleteMapping
in interface IndicesAdminClient
public ActionFuture<OptimizeResponse> optimize(OptimizeRequest request)
IndicesAdminClient
optimize
in interface IndicesAdminClient
request
- The optimize requestRequests.optimizeRequest(String...)
public void optimize(OptimizeRequest request, ActionListener<OptimizeResponse> listener)
IndicesAdminClient
optimize
in interface IndicesAdminClient
request
- The optimize requestlistener
- A listener to be notified with a resultRequests.optimizeRequest(String...)
public OptimizeRequestBuilder prepareOptimize(String... indices)
IndicesAdminClient
prepareOptimize
in interface IndicesAdminClient
public ActionFuture<RefreshResponse> refresh(RefreshRequest request)
IndicesAdminClient
refresh
in interface IndicesAdminClient
request
- The refresh requestRequests.refreshRequest(String...)
public void refresh(RefreshRequest request, ActionListener<RefreshResponse> listener)
IndicesAdminClient
refresh
in interface IndicesAdminClient
request
- The refresh requestlistener
- A listener to be notified with a resultRequests.refreshRequest(String...)
public RefreshRequestBuilder prepareRefresh(String... indices)
IndicesAdminClient
prepareRefresh
in interface IndicesAdminClient
public ActionFuture<IndicesStatsResponse> stats(IndicesStatsRequest request)
IndicesAdminClient
stats
in interface IndicesAdminClient
public void stats(IndicesStatsRequest request, ActionListener<IndicesStatsResponse> listener)
IndicesAdminClient
stats
in interface IndicesAdminClient
public IndicesStatsRequestBuilder prepareStats(String... indices)
IndicesAdminClient
prepareStats
in interface IndicesAdminClient
public ActionFuture<IndicesStatusResponse> status(IndicesStatusRequest request)
IndicesAdminClient
status
in interface IndicesAdminClient
request
- The indices status requestRequests.indicesStatusRequest(String...)
public void status(IndicesStatusRequest request, ActionListener<IndicesStatusResponse> listener)
IndicesAdminClient
status
in interface IndicesAdminClient
request
- The indices status requestlistener
- A listener to be notified with a resultRequests.indicesStatusRequest(String...)
public IndicesStatusRequestBuilder prepareStatus(String... indices)
IndicesAdminClient
prepareStatus
in interface IndicesAdminClient
public ActionFuture<RecoveryResponse> recoveries(RecoveryRequest request)
IndicesAdminClient
recoveries
in interface IndicesAdminClient
public void recoveries(RecoveryRequest request, ActionListener<RecoveryResponse> listener)
IndicesAdminClient
recoveries
in interface IndicesAdminClient
public RecoveryRequestBuilder prepareRecoveries(String... indices)
IndicesAdminClient
prepareRecoveries
in interface IndicesAdminClient
public ActionFuture<IndicesSegmentResponse> segments(IndicesSegmentsRequest request)
IndicesAdminClient
segments
in interface IndicesAdminClient
request
- The indices segments requestRequests.indicesSegmentsRequest(String...)
public void segments(IndicesSegmentsRequest request, ActionListener<IndicesSegmentResponse> listener)
IndicesAdminClient
segments
in interface IndicesAdminClient
request
- The indices segments requestlistener
- A listener to be notified with a resultRequests.indicesSegmentsRequest(String...)
public IndicesSegmentsRequestBuilder prepareSegments(String... indices)
IndicesAdminClient
prepareSegments
in interface IndicesAdminClient
public ActionFuture<UpdateSettingsResponse> updateSettings(UpdateSettingsRequest request)
IndicesAdminClient
updateSettings
in interface IndicesAdminClient
request
- the update settings requestpublic void updateSettings(UpdateSettingsRequest request, ActionListener<UpdateSettingsResponse> listener)
IndicesAdminClient
updateSettings
in interface IndicesAdminClient
request
- the update settings requestlistener
- A listener to be notified with the responsepublic UpdateSettingsRequestBuilder prepareUpdateSettings(String... indices)
IndicesAdminClient
prepareUpdateSettings
in interface IndicesAdminClient
public ActionFuture<AnalyzeResponse> analyze(AnalyzeRequest request)
IndicesAdminClient
analyze
in interface IndicesAdminClient
public void analyze(AnalyzeRequest request, ActionListener<AnalyzeResponse> listener)
IndicesAdminClient
analyze
in interface IndicesAdminClient
public AnalyzeRequestBuilder prepareAnalyze(@Nullable String index, String text)
IndicesAdminClient
prepareAnalyze
in interface IndicesAdminClient
index
- The index nametext
- The text to analyzepublic AnalyzeRequestBuilder prepareAnalyze(String text)
IndicesAdminClient
prepareAnalyze
in interface IndicesAdminClient
text
- The text to analyzepublic ActionFuture<PutIndexTemplateResponse> putTemplate(PutIndexTemplateRequest request)
IndicesAdminClient
putTemplate
in interface IndicesAdminClient
public void putTemplate(PutIndexTemplateRequest request, ActionListener<PutIndexTemplateResponse> listener)
IndicesAdminClient
putTemplate
in interface IndicesAdminClient
public PutIndexTemplateRequestBuilder preparePutTemplate(String name)
IndicesAdminClient
preparePutTemplate
in interface IndicesAdminClient
name
- The name of the template.public ActionFuture<GetIndexTemplatesResponse> getTemplates(GetIndexTemplatesRequest request)
IndicesAdminClient
getTemplates
in interface IndicesAdminClient
public void getTemplates(GetIndexTemplatesRequest request, ActionListener<GetIndexTemplatesResponse> listener)
IndicesAdminClient
getTemplates
in interface IndicesAdminClient
public GetIndexTemplatesRequestBuilder prepareGetTemplates(String... names)
IndicesAdminClient
prepareGetTemplates
in interface IndicesAdminClient
public ActionFuture<DeleteIndexTemplateResponse> deleteTemplate(DeleteIndexTemplateRequest request)
IndicesAdminClient
deleteTemplate
in interface IndicesAdminClient
public void deleteTemplate(DeleteIndexTemplateRequest request, ActionListener<DeleteIndexTemplateResponse> listener)
IndicesAdminClient
deleteTemplate
in interface IndicesAdminClient
public DeleteIndexTemplateRequestBuilder prepareDeleteTemplate(String name)
IndicesAdminClient
prepareDeleteTemplate
in interface IndicesAdminClient
name
- The name of the template.public ActionFuture<ValidateQueryResponse> validateQuery(ValidateQueryRequest request)
IndicesAdminClient
validateQuery
in interface IndicesAdminClient
request
- The count requestRequests.countRequest(String...)
public void validateQuery(ValidateQueryRequest request, ActionListener<ValidateQueryResponse> listener)
IndicesAdminClient
validateQuery
in interface IndicesAdminClient
request
- The count requestlistener
- A listener to be notified of the resultRequests.countRequest(String...)
public ValidateQueryRequestBuilder prepareValidateQuery(String... indices)
IndicesAdminClient
prepareValidateQuery
in interface IndicesAdminClient
public ActionFuture<PutWarmerResponse> putWarmer(PutWarmerRequest request)
IndicesAdminClient
putWarmer
in interface IndicesAdminClient
public void putWarmer(PutWarmerRequest request, ActionListener<PutWarmerResponse> listener)
IndicesAdminClient
putWarmer
in interface IndicesAdminClient
public PutWarmerRequestBuilder preparePutWarmer(String name)
IndicesAdminClient
preparePutWarmer
in interface IndicesAdminClient
public ActionFuture<DeleteWarmerResponse> deleteWarmer(DeleteWarmerRequest request)
IndicesAdminClient
deleteWarmer
in interface IndicesAdminClient
public void deleteWarmer(DeleteWarmerRequest request, ActionListener<DeleteWarmerResponse> listener)
IndicesAdminClient
deleteWarmer
in interface IndicesAdminClient
public DeleteWarmerRequestBuilder prepareDeleteWarmer()
IndicesAdminClient
prepareDeleteWarmer
in interface IndicesAdminClient
public GetWarmersRequestBuilder prepareGetWarmers(String... indices)
IndicesAdminClient
prepareGetWarmers
in interface IndicesAdminClient
public ActionFuture<GetWarmersResponse> getWarmers(GetWarmersRequest request)
IndicesAdminClient
getWarmers
in interface IndicesAdminClient
public void getWarmers(GetWarmersRequest request, ActionListener<GetWarmersResponse> listener)
IndicesAdminClient
getWarmers
in interface IndicesAdminClient
public GetSettingsRequestBuilder prepareGetSettings(String... indices)
IndicesAdminClient
prepareGetSettings
in interface IndicesAdminClient
indices
- the indices to fetch the setting for.IndicesAdminClient.getSettings(org.elasticsearch.action.admin.indices.settings.get.GetSettingsRequest)
public ActionFuture<GetSettingsResponse> getSettings(GetSettingsRequest request)
IndicesAdminClient
getSettings
in interface IndicesAdminClient
IndicesAdminClient.getSettings(org.elasticsearch.action.admin.indices.settings.get.GetSettingsRequest)
public void getSettings(GetSettingsRequest request, ActionListener<GetSettingsResponse> listener)
IndicesAdminClient
getSettings
in interface IndicesAdminClient
Copyright © 2009–2015. All rights reserved.