Package org.elasticsearch.test
Class MockIndexEventListener.TestEventListener
java.lang.Object
org.elasticsearch.test.MockIndexEventListener.TestEventListener
- All Implemented Interfaces:
IndexEventListener
- Enclosing class:
MockIndexEventListener
public static class MockIndexEventListener.TestEventListener
extends Object
implements IndexEventListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterIndexCreated(IndexService indexService) voidafterIndexRemoved(Index index, IndexSettings indexSettings, IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason) voidafterIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings) voidafterIndexShardCreated(IndexShard indexShard) voidafterIndexShardDeleted(ShardId shardId, Settings indexSettings) voidafterIndexShardStarted(IndexShard indexShard) voidbeforeIndexAddedToCluster(Index index, Settings indexSettings) voidbeforeIndexCreated(Index index, Settings indexSettings) voidbeforeIndexRemoved(IndexService indexService, IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason) voidbeforeIndexShardClosed(ShardId shardId, IndexShard indexShard, Settings indexSettings) voidbeforeIndexShardCreated(ShardRouting shardrouting, Settings indexSettings) voidbeforeIndexShardDeleted(ShardId shardId, Settings indexSettings) voidindexShardStateChanged(IndexShard indexShard, IndexShardState previousState, IndexShardState currentState, String reason) voidsetNewDelegate(IndexEventListener listener) voidshardRoutingChanged(IndexShard indexShard, ShardRouting oldRouting, ShardRouting newRouting) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.index.shard.IndexEventListener
afterFilesRestoredFromRepository, afterIndexShardClosing, afterIndexShardRecovery, beforeIndexShardRecovery, onStoreClosed, onStoreCreated
-
Constructor Details
-
TestEventListener
public TestEventListener()
-
-
Method Details
-
setNewDelegate
-
shardRoutingChanged
public void shardRoutingChanged(IndexShard indexShard, @Nullable ShardRouting oldRouting, ShardRouting newRouting) - Specified by:
shardRoutingChangedin interfaceIndexEventListener
-
afterIndexShardCreated
- Specified by:
afterIndexShardCreatedin interfaceIndexEventListener
-
afterIndexShardStarted
- Specified by:
afterIndexShardStartedin interfaceIndexEventListener
-
beforeIndexShardClosed
public void beforeIndexShardClosed(ShardId shardId, @Nullable IndexShard indexShard, Settings indexSettings) - Specified by:
beforeIndexShardClosedin interfaceIndexEventListener
-
afterIndexShardClosed
public void afterIndexShardClosed(ShardId shardId, @Nullable IndexShard indexShard, Settings indexSettings) - Specified by:
afterIndexShardClosedin interfaceIndexEventListener
-
indexShardStateChanged
public void indexShardStateChanged(IndexShard indexShard, @Nullable IndexShardState previousState, IndexShardState currentState, @Nullable String reason) - Specified by:
indexShardStateChangedin interfaceIndexEventListener
-
beforeIndexCreated
- Specified by:
beforeIndexCreatedin interfaceIndexEventListener
-
afterIndexCreated
- Specified by:
afterIndexCreatedin interfaceIndexEventListener
-
beforeIndexShardCreated
- Specified by:
beforeIndexShardCreatedin interfaceIndexEventListener
-
beforeIndexRemoved
public void beforeIndexRemoved(IndexService indexService, IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason) - Specified by:
beforeIndexRemovedin interfaceIndexEventListener
-
afterIndexRemoved
public void afterIndexRemoved(Index index, IndexSettings indexSettings, IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason) - Specified by:
afterIndexRemovedin interfaceIndexEventListener
-
beforeIndexShardDeleted
- Specified by:
beforeIndexShardDeletedin interfaceIndexEventListener
-
afterIndexShardDeleted
- Specified by:
afterIndexShardDeletedin interfaceIndexEventListener
-
beforeIndexAddedToCluster
- Specified by:
beforeIndexAddedToClusterin interfaceIndexEventListener
-