Package org.elasticsearch.index.shard
Class IndexingOperationListener.CompositeListener
java.lang.Object
org.elasticsearch.index.shard.IndexingOperationListener.CompositeListener
- All Implemented Interfaces:
IndexingOperationListener
- Enclosing interface:
- IndexingOperationListener
public static final class IndexingOperationListener.CompositeListener
extends Object
implements IndexingOperationListener
A Composite listener that multiplexes calls to each of the listeners methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.shard.IndexingOperationListener
IndexingOperationListener.CompositeListener
-
Constructor Summary
ConstructorDescriptionCompositeListener
(List<IndexingOperationListener> listeners, org.apache.logging.log4j.Logger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
postDelete
(ShardId shardId, Engine.Delete delete, Exception ex) Called after the delete operation occurred with engine level exception.void
postDelete
(ShardId shardId, Engine.Delete delete, Engine.DeleteResult result) Called after the delete operation occurred.void
postIndex
(ShardId shardId, Engine.Index index, Exception ex) Called after the indexing operation occurred with engine level exception.void
postIndex
(ShardId shardId, Engine.Index index, Engine.IndexResult result) Called after the indexing operation occurred.preDelete
(ShardId shardId, Engine.Delete delete) Called before the delete occurs.preIndex
(ShardId shardId, Engine.Index operation) Called before the indexing occurs.
-
Constructor Details
-
CompositeListener
public CompositeListener(List<IndexingOperationListener> listeners, org.apache.logging.log4j.Logger logger)
-
-
Method Details
-
preIndex
Description copied from interface:IndexingOperationListener
Called before the indexing occurs.- Specified by:
preIndex
in interfaceIndexingOperationListener
-
postIndex
Description copied from interface:IndexingOperationListener
Called after the indexing operation occurred. Note that this is also called when indexing a document did not succeed due to document related failures. SeeIndexingOperationListener.postIndex(ShardId, Engine.Index, Exception)
for engine level failures- Specified by:
postIndex
in interfaceIndexingOperationListener
-
postIndex
Description copied from interface:IndexingOperationListener
Called after the indexing operation occurred with engine level exception. SeeIndexingOperationListener.postIndex(ShardId, Engine.Index, Engine.IndexResult)
for document related failures- Specified by:
postIndex
in interfaceIndexingOperationListener
-
preDelete
Description copied from interface:IndexingOperationListener
Called before the delete occurs.- Specified by:
preDelete
in interfaceIndexingOperationListener
-
postDelete
Description copied from interface:IndexingOperationListener
Called after the delete operation occurred. Note that this is also called when deleting a document did not succeed due to document related failures. SeeIndexingOperationListener.postDelete(ShardId, Engine.Delete, Exception)
for engine level failures- Specified by:
postDelete
in interfaceIndexingOperationListener
-
postDelete
Description copied from interface:IndexingOperationListener
Called after the delete operation occurred with engine level exception. SeeIndexingOperationListener.postDelete(ShardId, Engine.Delete, Engine.DeleteResult)
for document related failures- Specified by:
postDelete
in interfaceIndexingOperationListener
-