|
|||||||||
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,
TransportIndicesStatusAction indicesStatusAction,
TransportCreateIndexAction createIndexAction,
TransportDeleteIndexAction deleteIndexAction,
TransportRefreshAction refreshAction,
TransportFlushAction flushAction,
TransportOptimizeAction optimizeAction,
TransportPutMappingAction putMappingAction,
TransportGatewaySnapshotAction gatewaySnapshotAction,
TransportIndicesAliasesAction indicesAliasesAction,
TransportClearIndicesCacheAction clearIndicesCacheAction,
TransportUpdateSettingsAction updateSettingsAction)
|
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. |
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, prepareClearCache, prepareCreate, prepareDelete, prepareFlush, prepareGatewaySnapshot, prepareOptimize, preparePutMapping, prepareRefresh, 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, prepareClearCache, prepareCreate, prepareDelete, prepareFlush, prepareGatewaySnapshot, prepareOptimize, preparePutMapping, prepareRefresh, prepareStatus, prepareUpdateSettings |
Constructor Detail |
---|
@Inject public NodeIndicesAdminClient(Settings settings, ThreadPool threadPool, TransportIndicesStatusAction indicesStatusAction, TransportCreateIndexAction createIndexAction, TransportDeleteIndexAction deleteIndexAction, TransportRefreshAction refreshAction, TransportFlushAction flushAction, TransportOptimizeAction optimizeAction, TransportPutMappingAction putMappingAction, TransportGatewaySnapshotAction gatewaySnapshotAction, TransportIndicesAliasesAction indicesAliasesAction, TransportClearIndicesCacheAction clearIndicesCacheAction, TransportUpdateSettingsAction updateSettingsAction)
Method Detail |
---|
public ThreadPool threadPool()
threadPool
in interface InternalIndicesAdminClient
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<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<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<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 response
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |