public class IndexCompletionComputation extends AbstractComputation
Modifier and Type | Field and Description |
---|---|
protected Codec<BulkStatus> |
codec |
static String |
NAME |
Constructor and Description |
---|
IndexCompletionComputation() |
Modifier and Type | Method and Description |
---|---|
void |
init(ComputationContext context)
Called when the framework has registered the computation successfully.
|
protected void |
logIndexing(BulkStatus status) |
void |
processRecord(ComputationContext context,
String inputStream,
Record record)
Process an incoming record on one of the computation's input streams.
|
protected void |
refreshIndexIfNeeded(BulkCommand command) |
protected void |
updateAliasIfNeeded(BulkCommand command) |
metadata, processFailure, processRetry, processTimer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy, signalStop
public static final String NAME
protected Codec<BulkStatus> codec
public IndexCompletionComputation()
public void init(ComputationContext context)
Computation
init
in interface Computation
init
in class AbstractComputation
context
- The computation context object provided by the system.public void processRecord(ComputationContext context, String inputStream, Record record)
Computation
context
- The computation context object provided by the system.inputStream
- Name of the input stream that provides the record.record
- The record.protected void refreshIndexIfNeeded(BulkCommand command)
protected void updateAliasIfNeeded(BulkCommand command)
protected void logIndexing(BulkStatus status)
Copyright © 2019 Nuxeo. All rights reserved.