|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.client.support.AbstractIndicesAdminClient
public abstract class AbstractIndicesAdminClient
Constructor Summary | |
---|---|
AbstractIndicesAdminClient()
|
Method Summary | ||
---|---|---|
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<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<GatewaySnapshotResponse> |
gatewaySnapshot(GatewaySnapshotRequest request)
Explicitly perform gateway snapshot for one or more indices. |
|
void |
gatewaySnapshot(GatewaySnapshotRequest request,
ActionListener<GatewaySnapshotResponse> listener)
Explicitly perform gateway snapshot for one or more indices. |
|
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. |
|
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 index)
Closes an index based on the 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. |
|
|
prepareExecute(IndicesAction<Request,Response,RequestBuilder> action)
|
|
IndicesExistsRequestBuilder |
prepareExists(String... indices)
Indices exists. |
|
FlushRequestBuilder |
prepareFlush(String... indices)
Explicitly flush one or more indices (releasing memory from the node). |
|
GatewaySnapshotRequestBuilder |
prepareGatewaySnapshot(String... indices)
Explicitly perform gateway snapshot for one or more indices. |
|
OpenIndexRequestBuilder |
prepareOpen(String index)
Opens an index based on the 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. |
|
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. |
|
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<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<IndicesStats> |
stats(IndicesStatsRequest request)
Indices stats. |
|
void |
stats(IndicesStatsRequest request,
ActionListener<IndicesStats> 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<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. |
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 |
---|
execute, execute |
Constructor Detail |
---|
public AbstractIndicesAdminClient()
Method Detail |
---|
public <Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response>> RequestBuilder prepareExecute(IndicesAction<Request,Response,RequestBuilder> action)
prepareExecute
in interface IndicesAdminClient
public ActionFuture<IndicesExistsResponse> exists(IndicesExistsRequest request)
IndicesAdminClient
exists
in interface IndicesAdminClient
request
- The indices exists request
Requests.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<IndicesAliasesResponse> aliases(IndicesAliasesRequest request)
IndicesAdminClient
aliases
in interface IndicesAdminClient
request
- The index aliases request
Requests.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<ClearIndicesCacheResponse> clearCache(ClearIndicesCacheRequest request)
IndicesAdminClient
clearCache
in interface IndicesAdminClient
request
- The clear indices cache request
Requests.clearIndicesCacheRequest(String...)
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 request
Requests.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 request
Requests.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. Empty array to delete all indices.public ActionFuture<CloseIndexResponse> close(CloseIndexRequest request)
IndicesAdminClient
close
in interface IndicesAdminClient
request
- The close index request
Requests.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 index)
IndicesAdminClient
prepareClose
in interface IndicesAdminClient
index
- The index name to closepublic ActionFuture<OpenIndexResponse> open(OpenIndexRequest request)
IndicesAdminClient
open
in interface IndicesAdminClient
request
- The close index request
Requests.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 index)
IndicesAdminClient
prepareOpen
in interface IndicesAdminClient
index
- The index name to closepublic ActionFuture<FlushResponse> flush(FlushRequest request)
IndicesAdminClient
flush
in interface IndicesAdminClient
request
- The flush request
Requests.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 ActionFuture<GatewaySnapshotResponse> gatewaySnapshot(GatewaySnapshotRequest request)
IndicesAdminClient
gatewaySnapshot
in interface IndicesAdminClient
request
- The gateway snapshot request
Requests.gatewaySnapshotRequest(String...)
public void gatewaySnapshot(GatewaySnapshotRequest request, ActionListener<GatewaySnapshotResponse> listener)
IndicesAdminClient
gatewaySnapshot
in interface IndicesAdminClient
request
- The gateway snapshot requestlistener
- A listener to be notified with a resultRequests.gatewaySnapshotRequest(String...)
public GatewaySnapshotRequestBuilder prepareGatewaySnapshot(String... indices)
IndicesAdminClient
prepareGatewaySnapshot
in interface IndicesAdminClient
public ActionFuture<PutMappingResponse> putMapping(PutMappingRequest request)
IndicesAdminClient
putMapping
in interface IndicesAdminClient
request
- The create mapping request
Requests.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 request
Requests.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 request
Requests.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 request
Requests.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<IndicesStats> stats(IndicesStatsRequest request)
IndicesAdminClient
stats
in interface IndicesAdminClient
public void stats(IndicesStatsRequest request, ActionListener<IndicesStats> 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 request
Requests.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<IndicesSegmentResponse> segments(IndicesSegmentsRequest request)
IndicesAdminClient
segments
in interface IndicesAdminClient
request
- The indices segments request
Requests.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 request
public 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<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 request
Requests.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |