Package org.elasticsearch.ingest
Class Processor.Parameters
java.lang.Object
org.elasticsearch.ingest.Processor.Parameters
- Enclosing interface:
- Processor
public static class Processor.Parameters
extends java.lang.Object
Infrastructure class that holds services that can be used by processor factories to create processor instances
and that gets passed around to all
IngestPlugins.-
Field Summary
Fields Modifier and Type Field Description AnalysisRegistryanalysisRegistryProvide analyzer supportClientclientProvides access to the node clientEnvironmentenvUseful to provide access to the node's environment like config directory to processor factories.java.util.function.Consumer<java.lang.Runnable>genericExecutorIngestServiceingestServicejava.util.function.LongSupplierrelativeTimeSupplierjava.util.function.BiFunction<java.lang.Long,java.lang.Runnable,Scheduler.ScheduledCancellable>schedulerProvides scheduler supportScriptServicescriptServiceProvides processors script support.ThreadContextthreadContextAllows processors to read headers set byActionFilterinstances that have run prior to in ingest. -
Constructor Summary
Constructors Constructor Description Parameters(Environment env, ScriptService scriptService, AnalysisRegistry analysisRegistry, ThreadContext threadContext, java.util.function.LongSupplier relativeTimeSupplier, java.util.function.BiFunction<java.lang.Long,java.lang.Runnable,Scheduler.ScheduledCancellable> scheduler, IngestService ingestService, Client client, java.util.function.Consumer<java.lang.Runnable> genericExecutor) -
Method Summary
-
Field Details
-
env
Useful to provide access to the node's environment like config directory to processor factories. -
scriptService
Provides processors script support. -
analysisRegistry
Provide analyzer support -
threadContext
Allows processors to read headers set byActionFilterinstances that have run prior to in ingest. -
relativeTimeSupplier
public final java.util.function.LongSupplier relativeTimeSupplier -
ingestService
-
genericExecutor
public final java.util.function.Consumer<java.lang.Runnable> genericExecutor -
scheduler
public final java.util.function.BiFunction<java.lang.Long,java.lang.Runnable,Scheduler.ScheduledCancellable> schedulerProvides scheduler support -
client
Provides access to the node client
-
-
Constructor Details
-
Parameters
public Parameters(Environment env, ScriptService scriptService, AnalysisRegistry analysisRegistry, ThreadContext threadContext, java.util.function.LongSupplier relativeTimeSupplier, java.util.function.BiFunction<java.lang.Long,java.lang.Runnable,Scheduler.ScheduledCancellable> scheduler, IngestService ingestService, Client client, java.util.function.Consumer<java.lang.Runnable> genericExecutor)
-