Package org.nuxeo.elasticsearch.bulk
Class IndexCompletionComputation
java.lang.Object
org.nuxeo.lib.stream.computation.AbstractComputation
org.nuxeo.elasticsearch.bulk.IndexCompletionComputation
- All Implemented Interfaces:
- Computation
On indexing completion, do extra tasks like refresh or update index alias.
- Since:
- 10.3
- 
Field SummaryFieldsFields inherited from class org.nuxeo.lib.stream.computation.AbstractComputationINPUT_1, INPUT_2, INPUT_3, INPUT_NULL, metadata, OUTPUT_1, OUTPUT_2, OUTPUT_3, OUTPUT_4
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidinit(ComputationContext context) Called when the framework has registered the computation successfully.protected voidlogIndexing(BulkStatus status) voidprocessRecord(ComputationContext context, String inputStream, Record record) Process an incoming record on one of the computation's input streams.protected voidrefreshIndexIfNeeded(BulkCommand command) protected voidupdateAliasIfNeeded(BulkCommand command) Methods inherited from class org.nuxeo.lib.stream.computation.AbstractComputationmetadata, processFailure, processRetry, processTimerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.lib.stream.computation.Computationdestroy, signalStop
- 
Field Details- 
NAME- See Also:
 
- 
codec
 
- 
- 
Constructor Details- 
IndexCompletionComputationpublic IndexCompletionComputation()
 
- 
- 
Method Details- 
initDescription copied from interface:ComputationCalled when the framework has registered the computation successfully. Gives users a first opportunity to schedule timer callbacks and produce records. This method can be called multiple times.- Specified by:
- initin interface- Computation
- Overrides:
- initin class- AbstractComputation
- Parameters:
- context- The computation context object provided by the system.
 
- 
processRecordDescription copied from interface:ComputationProcess an incoming record on one of the computation's input streams.- Parameters:
- context- The computation context object provided by the system.
- inputStream- Name of the input stream that provides the record.
- record- The record.
 
- 
refreshIndexIfNeeded
- 
updateAliasIfNeeded
- 
logIndexing
 
-