|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.util.component.AbstractComponent org.elasticsearch.client.transport.support.InternalTransportIndicesAdminClient
public class InternalTransportIndicesAdminClient
Field Summary |
---|
Fields inherited from class org.elasticsearch.util.component.AbstractComponent |
---|
componentSettings, logger, settings |
Constructor Summary | |
---|---|
InternalTransportIndicesAdminClient(Settings settings,
TransportClientNodesService nodesService,
ClientTransportIndicesStatusAction indicesStatusAction,
ClientTransportCreateIndexAction createIndexAction,
ClientTransportDeleteIndexAction deleteIndexAction,
ClientTransportRefreshAction refreshAction,
ClientTransportFlushAction flushAction,
ClientTransportOptimizeAction optimizeAction,
ClientTransportPutMappingAction putMappingAction,
ClientTransportGatewaySnapshotAction gatewaySnapshotAction,
ClientTransportIndicesAliasesAction indicesAliasesAction,
ClientTransportClearIndicesCacheAction clearIndicesCacheAction)
|
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. |
Methods inherited from class org.elasticsearch.util.component.AbstractComponent |
---|
nodeName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Inject public InternalTransportIndicesAdminClient(Settings settings, TransportClientNodesService nodesService, ClientTransportIndicesStatusAction indicesStatusAction, ClientTransportCreateIndexAction createIndexAction, ClientTransportDeleteIndexAction deleteIndexAction, ClientTransportRefreshAction refreshAction, ClientTransportFlushAction flushAction, ClientTransportOptimizeAction optimizeAction, ClientTransportPutMappingAction putMappingAction, ClientTransportGatewaySnapshotAction gatewaySnapshotAction, ClientTransportIndicesAliasesAction indicesAliasesAction, ClientTransportClearIndicesCacheAction clearIndicesCacheAction)
Method Detail |
---|
public ActionFuture<IndicesStatusResponse> status(IndicesStatusRequest request)
IndicesAdminClient
status
in interface IndicesAdminClient
request
- The indices status request
Requests.indicesStatus(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.indicesStatus(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.clearIndicesCache(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.clearIndicesCache(String...)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |