|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.client.support.AbstractIndicesAdminClient
org.elasticsearch.client.node.NodeIndicesAdminClient
public class NodeIndicesAdminClient
Constructor Summary | |
---|---|
NodeIndicesAdminClient(Settings settings,
ThreadPool threadPool,
TransportIndicesExistsAction indicesExistsAction,
TransportIndicesStatusAction indicesStatusAction,
TransportIndicesSegmentsAction indicesSegmentsAction,
TransportCreateIndexAction createIndexAction,
TransportDeleteIndexAction deleteIndexAction,
TransportCloseIndexAction closeIndexAction,
TransportOpenIndexAction openIndexAction,
TransportRefreshAction refreshAction,
TransportFlushAction flushAction,
TransportOptimizeAction optimizeAction,
TransportPutMappingAction putMappingAction,
TransportDeleteMappingAction deleteMappingAction,
TransportGatewaySnapshotAction gatewaySnapshotAction,
TransportIndicesAliasesAction indicesAliasesAction,
TransportClearIndicesCacheAction clearIndicesCacheAction,
TransportUpdateSettingsAction updateSettingsAction,
TransportAnalyzeAction analyzeAction,
TransportPutIndexTemplateAction putIndexTemplateAction,
TransportDeleteIndexTemplateAction deleteIndexTemplateAction)
|
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<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. |
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<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<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. |
ThreadPool |
threadPool()
|
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. |
Methods inherited from class org.elasticsearch.client.support.AbstractIndicesAdminClient |
---|
prepareAliases, prepareAnalyze, prepareClearCache, prepareClose, prepareCreate, prepareDelete, prepareDeleteMapping, prepareDeleteTemplate, prepareExists, prepareFlush, prepareGatewaySnapshot, prepareOpen, prepareOptimize, preparePutMapping, preparePutTemplate, prepareRefresh, prepareSegments, prepareStatus, prepareUpdateSettings |
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.IndicesAdminClient |
---|
prepareAliases, prepareAnalyze, prepareClearCache, prepareClose, prepareCreate, prepareDelete, prepareDeleteMapping, prepareDeleteTemplate, prepareExists, prepareFlush, prepareGatewaySnapshot, prepareOpen, prepareOptimize, preparePutMapping, preparePutTemplate, prepareRefresh, prepareSegments, prepareStatus, prepareUpdateSettings |
Constructor Detail |
---|
@Inject public NodeIndicesAdminClient(Settings settings, ThreadPool threadPool, TransportIndicesExistsAction indicesExistsAction, TransportIndicesStatusAction indicesStatusAction, TransportIndicesSegmentsAction indicesSegmentsAction, TransportCreateIndexAction createIndexAction, TransportDeleteIndexAction deleteIndexAction, TransportCloseIndexAction closeIndexAction, TransportOpenIndexAction openIndexAction, TransportRefreshAction refreshAction, TransportFlushAction flushAction, TransportOptimizeAction optimizeAction, TransportPutMappingAction putMappingAction, TransportDeleteMappingAction deleteMappingAction, TransportGatewaySnapshotAction gatewaySnapshotAction, TransportIndicesAliasesAction indicesAliasesAction, TransportClearIndicesCacheAction clearIndicesCacheAction, TransportUpdateSettingsAction updateSettingsAction, TransportAnalyzeAction analyzeAction, TransportPutIndexTemplateAction putIndexTemplateAction, TransportDeleteIndexTemplateAction deleteIndexTemplateAction)
Method Detail |
---|
public ThreadPool threadPool()
threadPool
in interface InternalIndicesAdminClient
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 ActionFuture<AnalyzeResponse> analyze(AnalyzeRequest request)
IndicesAdminClient
analyze
in interface IndicesAdminClient
public void analyze(AnalyzeRequest request, ActionListener<AnalyzeResponse> listener)
IndicesAdminClient
analyze
in interface IndicesAdminClient
public ActionFuture<PutIndexTemplateResponse> putTemplate(PutIndexTemplateRequest request)
IndicesAdminClient
putTemplate
in interface IndicesAdminClient
public void putTemplate(PutIndexTemplateRequest request, ActionListener<PutIndexTemplateResponse> listener)
IndicesAdminClient
putTemplate
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |