Package io.kestra.core.runners
Class Indexer
java.lang.Object
io.kestra.core.runners.Indexer
- All Implemented Interfaces:
IndexerInterface,Closeable,AutoCloseable,Runnable
@Singleton
@Requires(beans={ExecutionRepositoryInterface.class,LogRepositoryInterface.class,TriggerRepositoryInterface.class})
public class Indexer
extends Object
implements IndexerInterface
-
Constructor Summary
ConstructorsConstructorDescriptionIndexer(ExecutionRepositoryInterface executionRepository, QueueInterface<Execution> executionQueue, LogRepositoryInterface logRepository, QueueInterface<LogEntry> logQueue, MetricRepositoryInterface metricRepositor, QueueInterface<MetricEntry> metricQueue, MetricRegistry metricRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidrun()protected <T> voidsend(QueueInterface<T> queueInterface, SaveRepositoryInterface<T> saveRepositoryInterface)
-
Constructor Details
-
Indexer
@Inject public Indexer(ExecutionRepositoryInterface executionRepository, @Named("executionQueue") QueueInterface<Execution> executionQueue, LogRepositoryInterface logRepository, @Named("workerTaskLogQueue") QueueInterface<LogEntry> logQueue, MetricRepositoryInterface metricRepositor, @Named("workerTaskMetricQueue") QueueInterface<MetricEntry> metricQueue, MetricRegistry metricRegistry)
-
-
Method Details
-
run
public void run() -
send
protected <T> void send(QueueInterface<T> queueInterface, SaveRepositoryInterface<T> saveRepositoryInterface) -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-