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, processTimerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroy, signalStoppublic static final String NAME
protected Codec<BulkStatus> codec
public IndexCompletionComputation()
public void init(ComputationContext context)
Computationinit in interface Computationinit in class AbstractComputationcontext - The computation context object provided by the system.public void processRecord(ComputationContext context, String inputStream, Record record)
Computationcontext - 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.