Package org.elasticsearch.index.shard
Interface IndexingOperationListener
- All Known Implementing Classes:
IndexingMemoryController
,IndexingOperationListener.CompositeListener
,IndexingSlowLog
public interface IndexingOperationListener
An indexing listener for indexing, delete, events.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
A Composite listener that multiplexes calls to each of the listeners methods. -
Method Summary
Modifier and TypeMethodDescriptiondefault void
postDelete(ShardId shardId, Engine.Delete delete, Exception ex)
Called after the delete operation occurred with engine level exception.default void
postDelete(ShardId shardId, Engine.Delete delete, Engine.DeleteResult result)
Called after the delete operation occurred.default void
postIndex(ShardId shardId, Engine.Index index, Exception ex)
Called after the indexing operation occurred with engine level exception.default void
postIndex(ShardId shardId, Engine.Index index, Engine.IndexResult result)
Called after the indexing operation occurred.default Engine.Delete
preDelete(ShardId shardId, Engine.Delete delete)
Called before the delete occurs.default Engine.Index
preIndex(ShardId shardId, Engine.Index operation)
Called before the indexing occurs.
-
Method Details
-
preIndex
Called before the indexing occurs. -
postIndex
Called after the indexing operation occurred. Note that this is also called when indexing a document did not succeed due to document related failures. SeepostIndex(ShardId, Engine.Index, Exception)
for engine level failures -
postIndex
Called after the indexing operation occurred with engine level exception. SeepostIndex(ShardId, Engine.Index, Engine.IndexResult)
for document related failures -
preDelete
Called before the delete occurs. -
postDelete
Called after the delete operation occurred. Note that this is also called when deleting a document did not succeed due to document related failures. SeepostDelete(ShardId, Engine.Delete, Exception)
for engine level failures -
postDelete
Called after the delete operation occurred with engine level exception. SeepostDelete(ShardId, Engine.Delete, Engine.DeleteResult)
for document related failures
-