public class NoOpClient extends AbstractClient
null
to every request. Override this for testing.deprecationLogger, logger, settings
CLIENT_TYPE_SETTING_S
Constructor and Description |
---|
NoOpClient(java.lang.String testName)
Create a new
TestThreadPool for this client. |
NoOpClient(ThreadPool threadPool)
Build with
ThreadPool . |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected <Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> |
doExecute(Action<Request,Response,RequestBuilder> action,
Request request,
ActionListener<Response> listener) |
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, prepareClearScroll, prepareDelete, prepareDelete, prepareExecute, prepareExplain, prepareFieldCaps, prepareGet, prepareGet, prepareIndex, prepareIndex, prepareIndex, prepareMultiGet, prepareMultiSearch, prepareMultiTermVectors, prepareSearch, prepareSearchScroll, prepareTermVector, prepareTermVector, prepareTermVectors, prepareTermVectors, prepareUpdate, prepareUpdate, search, search, searchScroll, searchScroll, settings, termVector, termVector, termVectors, termVectors, threadPool, update, update
logDeprecatedSetting, logRemovedSetting, nodeName
public NoOpClient(ThreadPool threadPool)
public NoOpClient(java.lang.String testName)
TestThreadPool
for this client.protected <Request extends ActionRequest,Response extends ActionResponse,RequestBuilder extends ActionRequestBuilder<Request,Response,RequestBuilder>> void doExecute(Action<Request,Response,RequestBuilder> action, Request request, ActionListener<Response> listener)
doExecute
in class AbstractClient
public void close()