Package org.elasticsearch.test
Class MockIndexEventListener
- java.lang.Object
-
- org.elasticsearch.test.MockIndexEventListener
-
public final class MockIndexEventListener extends java.lang.ObjectThis is a testing plugin that registers a genericMockIndexEventListener.TestEventListeneras a node level service as well as a listener on every index. Tests can access it like this:TestEventListener listener = internalCluster().getInstance(MockIndexEventListener.TestEventListener.class, node1); listener.setNewDelegate(new IndexEventListener() { // do some stuff });This allows tests to use the listener without registering their own plugins.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMockIndexEventListener.TestEventListenerstatic classMockIndexEventListener.TestPlugin
-
Constructor Summary
Constructors Constructor Description MockIndexEventListener()
-