|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IndicesAdminClient
Administrative actions/operations against indices.
AdminClient.indices()
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<ClearIndicesCacheResponse> |
clearCache(ClearIndicesCacheRequest request)
Clear indices cache. |
void |
clearCache(ClearIndicesCacheRequest request,
ActionListener<ClearIndicesCacheResponse> listener)
Clear indices cache. |
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<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<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. |
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<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<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. |
Method Detail |
---|
ActionFuture<IndicesStatusResponse> status(IndicesStatusRequest request)
request
- The indices status request
Requests.indicesStatus(String...)
void status(IndicesStatusRequest request, ActionListener<IndicesStatusResponse> listener)
request
- The indices status requestlistener
- A listener to be notified with a resultRequests.indicesStatus(String...)
ActionFuture<CreateIndexResponse> create(CreateIndexRequest request)
request
- The create index request
Requests.createIndexRequest(String)
void create(CreateIndexRequest request, ActionListener<CreateIndexResponse> listener)
request
- The create index requestlistener
- A listener to be notified with a resultRequests.createIndexRequest(String)
ActionFuture<DeleteIndexResponse> delete(DeleteIndexRequest request)
request
- The delete index request
Requests.deleteIndexRequest(String)
void delete(DeleteIndexRequest request, ActionListener<DeleteIndexResponse> listener)
request
- The delete index requestlistener
- A listener to be notified with a resultRequests.deleteIndexRequest(String)
ActionFuture<RefreshResponse> refresh(RefreshRequest request)
request
- The refresh request
Requests.refreshRequest(String...)
void refresh(RefreshRequest request, ActionListener<RefreshResponse> listener)
request
- The refresh requestlistener
- A listener to be notified with a resultRequests.refreshRequest(String...)
ActionFuture<FlushResponse> flush(FlushRequest request)
request
- The flush request
Requests.flushRequest(String...)
void flush(FlushRequest request, ActionListener<FlushResponse> listener)
request
- The flush requestlistener
- A listener to be notified with a resultRequests.flushRequest(String...)
ActionFuture<OptimizeResponse> optimize(OptimizeRequest request)
request
- The optimize request
Requests.optimizeRequest(String...)
void optimize(OptimizeRequest request, ActionListener<OptimizeResponse> listener)
request
- The optimize requestlistener
- A listener to be notified with a resultRequests.optimizeRequest(String...)
ActionFuture<PutMappingResponse> putMapping(PutMappingRequest request)
request
- The create mapping request
Requests.putMappingRequest(String...)
void putMapping(PutMappingRequest request, ActionListener<PutMappingResponse> listener)
request
- The create mapping requestlistener
- A listener to be notified with a resultRequests.putMappingRequest(String...)
ActionFuture<GatewaySnapshotResponse> gatewaySnapshot(GatewaySnapshotRequest request)
request
- The gateway snapshot request
Requests.gatewaySnapshotRequest(String...)
void gatewaySnapshot(GatewaySnapshotRequest request, ActionListener<GatewaySnapshotResponse> listener)
request
- The gateway snapshot requestlistener
- A listener to be notified with a resultRequests.gatewaySnapshotRequest(String...)
ActionFuture<IndicesAliasesResponse> aliases(IndicesAliasesRequest request)
request
- The index aliases request
Requests.indexAliasesRequest()
void aliases(IndicesAliasesRequest request, ActionListener<IndicesAliasesResponse> listener)
request
- The index aliases requestlistener
- A listener to be notified with a resultRequests.indexAliasesRequest()
ActionFuture<ClearIndicesCacheResponse> clearCache(ClearIndicesCacheRequest request)
request
- The clear indices cache request
Requests.clearIndicesCache(String...)
void clearCache(ClearIndicesCacheRequest request, ActionListener<ClearIndicesCacheResponse> listener)
request
- The clear indices cache requestlistener
- A listener to be notified with a resultRequests.clearIndicesCache(String...)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |