Fluxtion compiler

Usage of the Fluxtion compiler described

Introduction

At the heart of Fluxtion lies the Fluxtion generator. An executable jar version of the generator is located in the dist directory of the generator project, that clients can download and use in their own projects

Executing Fluxtion event stream compiler

The steps a user should follow to execute the fluxtion event stream compiler are:

Constructing parameters for the first time can be complicated. The Fluxtion maven plugin will print to console the equivalent command line to invoke Fluxtion generator directly.

Classpath

Whichever construction strategy is used for compilation Fluxtion must have access to the classpath that includes user classes and Fluxtion libraries. The compiler loads all classes for analysis and instantiates nodes for adding to the graph.

Some of the classes that Fluxtion libraries provide are only required at compile time as they are used to construct the graph for analysis, but once the SEP is generated these classes are not required. A set of the Fluxtion classes are required at both generation time and application runtime. Fluxtion splits its classes into libraries with the following naming convention:

library name

build time

runtime

description

api

yes

yes

provides runtime classes such as events, or lifecycle interfaces

builder

yes

-

classes used by client code in graph construction such as SEPConfig

A user may choose to remove the builder classes from the deployment of an application and there should be no effect on the generated SEP.

CLI

Executing the help command with Fluxtion will print to console the usage reference:

Example use

Most of the parameters are self explanatory and can configure the compilation to deliver a specific set of goals. A standard usage of Fluxtion to generate a SEP from a supplied SEPConfig file similar to that below:

Last updated

Was this helpful?