public class EventProcessorFactory extends Object
To generate a SEP the caller invokes one of the static compileSep methods. An instance of EventProcessorConfig is passed
to the consumer to control the graph construction, such as adding nodes and defining scopes or identifiers. Simple
example adding a single node:
sepTestInstance((c) -> c.addNode(new MyHandler(), "handler"), "com.fluxtion.examples.inprocess", "GenNode_1");
| Constructor and Description |
|---|
EventProcessorFactory() |
| Modifier and Type | Method and Description |
|---|---|
static com.fluxtion.runtime.EventProcessor |
compile(Consumer<EventProcessorConfig> cfgBuilder,
String packageName,
String className,
String srcGenDir,
String resGenDir,
boolean initialise,
boolean writeSourceFile,
boolean generateMetaInformation)
Compiles and instantiates a SEP described with the provided
EventProcessorConfig, optionally initialising the SEP
instance. |
static com.fluxtion.runtime.EventProcessor |
compile(EventProcessorConfig eventProcessorConfig,
FluxtionCompilerConfig fluxtionCompilerConfig) |
static com.fluxtion.runtime.EventProcessor |
compile(com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<EventProcessorConfig> builder) |
static com.fluxtion.runtime.EventProcessor |
compile(com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<EventProcessorConfig> sepConfig,
com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<FluxtionCompilerConfig> cfgBuilder) |
static com.fluxtion.runtime.EventProcessor |
compile(RootNodeConfig rootNode) |
static com.fluxtion.runtime.EventProcessor |
compile(RootNodeConfig rootNode,
com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<FluxtionCompilerConfig> cfgBuilder) |
static com.fluxtion.runtime.EventProcessor |
compile(String name,
String pkg,
Consumer<EventProcessorConfig> builder)
Build a static event processor using the supplied consumer to populate the SEPConfig.
|
static com.fluxtion.runtime.EventProcessor |
compileTestInstance(Consumer<EventProcessorConfig> cfgBuilder,
String pckg,
String sepName,
boolean writeSourceFile,
boolean generateMetaInformation) |
static InMemoryEventProcessor |
interpreted(com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<EventProcessorConfig> cfgBuilder) |
static InMemoryEventProcessor |
interpreted(RootNodeConfig rootNode) |
static InMemoryEventProcessor |
interpretedTest(com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<EventProcessorConfig> cfgBuilder) |
public static InMemoryEventProcessor interpreted(com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<EventProcessorConfig> cfgBuilder)
public static InMemoryEventProcessor interpreted(RootNodeConfig rootNode)
public static InMemoryEventProcessor interpretedTest(com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<EventProcessorConfig> cfgBuilder)
public static com.fluxtion.runtime.EventProcessor compile(com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<EventProcessorConfig> builder) throws Exception
Exceptionpublic static com.fluxtion.runtime.EventProcessor compile(RootNodeConfig rootNode) throws Exception
Exceptionpublic static com.fluxtion.runtime.EventProcessor compile(RootNodeConfig rootNode, com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<FluxtionCompilerConfig> cfgBuilder)
public static com.fluxtion.runtime.EventProcessor compileTestInstance(Consumer<EventProcessorConfig> cfgBuilder, String pckg, String sepName, boolean writeSourceFile, boolean generateMetaInformation) throws Exception
Exceptionpublic static com.fluxtion.runtime.EventProcessor compile(String name, String pkg, Consumer<EventProcessorConfig> builder) throws Exception
name - The name of the generated static event processorpkg - The package name of the generated static event processorbuilder - The Consumer that populates the SEPConfigExceptionpublic static com.fluxtion.runtime.EventProcessor compile(Consumer<EventProcessorConfig> cfgBuilder, String packageName, String className, String srcGenDir, String resGenDir, boolean initialise, boolean writeSourceFile, boolean generateMetaInformation) throws InstantiationException, IllegalAccessException, Exception
EventProcessorConfig, optionally initialising the SEP
instance.cfgBuilder - - A client consumer to buld sep using the providedpackageName - - output package of the generated classclassName - - output class name of the generated SEPsrcGenDir - - output directory for generated SEP source filesresGenDir - - output directory for generated resourcesinitialise - - if true call init method on SEP instanceInstantiationExceptionIllegalAccessExceptionExceptionpublic static com.fluxtion.runtime.EventProcessor compile(com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<EventProcessorConfig> sepConfig, com.fluxtion.runtime.partition.LambdaReflection.SerializableConsumer<FluxtionCompilerConfig> cfgBuilder) throws Exception
Exceptionpublic static com.fluxtion.runtime.EventProcessor compile(EventProcessorConfig eventProcessorConfig, FluxtionCompilerConfig fluxtionCompilerConfig) throws Exception
ExceptionCopyright © 2022. All rights reserved.