Class NoOpNodeClient

All Implemented Interfaces:
Closeable, AutoCloseable, Client, ElasticsearchClient, org.elasticsearch.core.Releasable
Direct Known Subclasses:
RestActionTestCase.VerifyingClient

public class NoOpNodeClient extends NodeClient
Client that always response with null to every request. Override doExecute(ActionType, ActionRequest, ActionListener) or executeLocally(ActionType, ActionRequest, ActionListener) for testing. See also NoOpClient if you do not specifically need a NodeClient.