IndexEventListenerpublic static class MockIndexEventListener.TestEventListener extends java.lang.Object implements IndexEventListener
| Constructor | Description |
|---|---|
TestEventListener() |
onStoreClosedpublic void setNewDelegate(IndexEventListener listener)
public void shardRoutingChanged(IndexShard indexShard, @Nullable ShardRouting oldRouting, ShardRouting newRouting)
shardRoutingChanged in interface IndexEventListenerpublic void afterIndexShardCreated(IndexShard indexShard)
afterIndexShardCreated in interface IndexEventListenerpublic void afterIndexShardStarted(IndexShard indexShard)
afterIndexShardStarted in interface IndexEventListenerpublic void beforeIndexShardClosed(ShardId shardId, @Nullable IndexShard indexShard, Settings indexSettings)
beforeIndexShardClosed in interface IndexEventListenerpublic void afterIndexShardClosed(ShardId shardId, @Nullable IndexShard indexShard, Settings indexSettings)
afterIndexShardClosed in interface IndexEventListenerpublic void indexShardStateChanged(IndexShard indexShard, @Nullable IndexShardState previousState, IndexShardState currentState, @Nullable java.lang.String reason)
indexShardStateChanged in interface IndexEventListenerpublic void onShardInactive(IndexShard indexShard)
onShardInactive in interface IndexEventListenerpublic void beforeIndexCreated(Index index, Settings indexSettings)
beforeIndexCreated in interface IndexEventListenerpublic void afterIndexCreated(IndexService indexService)
afterIndexCreated in interface IndexEventListenerpublic void beforeIndexShardCreated(ShardId shardId, Settings indexSettings)
beforeIndexShardCreated in interface IndexEventListenerpublic void beforeIndexRemoved(IndexService indexService, IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason)
beforeIndexRemoved in interface IndexEventListenerpublic void afterIndexRemoved(Index index, IndexSettings indexSettings, IndicesClusterStateService.AllocatedIndices.IndexRemovalReason reason)
afterIndexRemoved in interface IndexEventListenerpublic void beforeIndexShardDeleted(ShardId shardId, Settings indexSettings)
beforeIndexShardDeleted in interface IndexEventListenerpublic void afterIndexShardDeleted(ShardId shardId, Settings indexSettings)
afterIndexShardDeleted in interface IndexEventListenerpublic void beforeIndexAddedToCluster(Index index, Settings indexSettings)
beforeIndexAddedToCluster in interface IndexEventListener