org.elasticsearch.client.transport.support
Class InternalTransportClient
java.lang.Object
org.elasticsearch.client.support.AbstractClient
org.elasticsearch.client.transport.support.InternalTransportClient
- All Implemented Interfaces:
- Client, InternalClient
public class InternalTransportClient
- extends AbstractClient
- implements InternalClient
Methods inherited from class org.elasticsearch.client.support.AbstractClient |
bulk, bulk, count, count, delete, delete, deleteByQuery, deleteByQuery, explain, explain, get, get, index, index, moreLikeThis, moreLikeThis, multiGet, multiGet, multiSearch, multiSearch, percolate, percolate, prepareBulk, prepareCount, prepareDelete, prepareDelete, prepareDeleteByQuery, prepareExecute, prepareExplain, prepareGet, prepareGet, prepareIndex, prepareIndex, prepareIndex, prepareMoreLikeThis, prepareMultiGet, prepareMultiSearch, preparePercolate, prepareSearch, prepareSearchScroll, prepareUpdate, prepareUpdate, search, search, searchScroll, searchScroll, update, update |
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.Client |
bulk, bulk, count, count, delete, delete, deleteByQuery, deleteByQuery, explain, explain, get, get, index, index, moreLikeThis, moreLikeThis, multiGet, multiGet, multiSearch, multiSearch, percolate, percolate, prepareBulk, prepareCount, prepareDelete, prepareDelete, prepareDeleteByQuery, prepareExecute, prepareExplain, prepareGet, prepareGet, prepareIndex, prepareIndex, prepareIndex, prepareMoreLikeThis, prepareMultiGet, prepareMultiSearch, preparePercolate, prepareSearch, prepareSearchScroll, prepareUpdate, prepareUpdate, search, search, searchScroll, searchScroll, update, update |
InternalTransportClient
@Inject
public InternalTransportClient(Settings settings,
ThreadPool threadPool,
TransportService transportService,
TransportClientNodesService nodesService,
InternalTransportAdminClient adminClient,
Map<String,GenericAction> actions)
close
public void close()
- Description copied from interface:
Client
- Closes the client.
- Specified by:
close
in interface Client
settings
public Settings settings()
- Specified by:
settings
in interface InternalClient
threadPool
public ThreadPool threadPool()
- Specified by:
threadPool
in interface InternalClient
admin
public AdminClient admin()
- Description copied from interface:
Client
- The admin client that can be used to perform administrative operations.
- Specified by:
admin
in interface Client
execute
public <Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response>> ActionFuture<Response> execute(Action<Request,Response,RequestBuilder> action,
Request request)
- Description copied from interface:
Client
- Executes a generic action, denoted by an
Action
.
- Specified by:
execute
in interface Client
- Type Parameters:
Request
- Teh request type.Response
- the response type.RequestBuilder
- The request builder type.- Parameters:
action
- The action type to execute.request
- The action request.
- Returns:
- A future allowing to get back the response.
execute
public <Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response>> void execute(Action<Request,Response,RequestBuilder> action,
Request request,
ActionListener<Response> listener)
- Description copied from interface:
Client
- Executes a generic action, denoted by an
Action
.
- Specified by:
execute
in interface Client
- Type Parameters:
Request
- The request type.Response
- The response type.RequestBuilder
- The request builder type.- Parameters:
action
- The action type to execute.request
- Teh action request.listener
- The listener to receive the response back.
Copyright © 2009-2012. All Rights Reserved.