java.lang.Object
org.elasticsearch.client.internal.support.AbstractClient
org.elasticsearch.client.internal.FilterClient
- All Implemented Interfaces:
Client,ElasticsearchClient
- Direct Known Subclasses:
OriginSettingClient,ParentTaskAssigningClient,RestCancellableNodeClient
-
Field Summary
FieldsFields inherited from class org.elasticsearch.client.internal.support.AbstractClient
logger, settings -
Constructor Summary
ConstructorsModifierConstructorDescriptionFilterClient(Client in) Creates a new FilterClientprotectedFilterClient(Settings settings, ThreadPool threadPool, Client in) A Constructor that allows to pass settings and threadpool separately. -
Method Summary
Modifier and TypeMethodDescriptionprotected <Request extends ActionRequest,Response extends ActionResponse>
voiddoExecute(ActionType<Response> action, Request request, ActionListener<Response> listener) getRemoteClusterClient(String clusterAlias, Executor responseExecutor, RemoteClusterService.DisconnectedStrategy disconnectedStrategy) Returns a client to a remote cluster with the given cluster alias.protected Clientin()Returns the delegateClientMethods inherited from class org.elasticsearch.client.internal.support.AbstractClient
admin, bulk, bulk, clearScroll, clearScroll, delete, delete, execute, execute, explain, explain, fieldCaps, fieldCaps, filterWithHeader, get, get, index, index, multiGet, multiGet, multiSearch, multiSearch, multiTermVectors, multiTermVectors, prepareBulk, prepareBulk, prepareClearScroll, prepareDelete, prepareDelete, prepareExplain, prepareFieldCaps, prepareGet, prepareGet, prepareIndex, prepareIndex, prepareMultiGet, prepareMultiSearch, prepareMultiTermVectors, prepareSearch, prepareSearchScroll, prepareTermVectors, prepareTermVectors, prepareUpdate, prepareUpdate, search, search, searchScroll, searchScroll, settings, termVectors, termVectors, threadPool, update, update
-
Field Details
-
in
-
-
Constructor Details
-
FilterClient
Creates a new FilterClient- Parameters:
in- the client to delegate to- See Also:
-
FilterClient
A Constructor that allows to pass settings and threadpool separately. This is useful if the client is a proxy and not yet fully constructed ie. both dependencies are not available yet.
-
-
Method Details
-
doExecute
protected <Request extends ActionRequest,Response extends ActionResponse> void doExecute(ActionType<Response> action, Request request, ActionListener<Response> listener) - Specified by:
doExecutein classAbstractClient
-
in
Returns the delegateClient -
getRemoteClusterClient
public RemoteClusterClient getRemoteClusterClient(String clusterAlias, Executor responseExecutor, RemoteClusterService.DisconnectedStrategy disconnectedStrategy) Description copied from interface:ClientReturns a client to a remote cluster with the given cluster alias.
-