GitHub - V12technology_fluxtion-Examples_ Building and Running the Projects in This Repository Will Teach a Developer How to Understand and Exploit the Capabilities of the Fluxtion Toolset. the Examples Should Be Read in Conjunction With the Reference

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

7/27/2018 GitHub - v12technology/fluxtion-examples: Building and running the projects in this repository will teach a developer how to understa…

v12technology / fluxtion-examples

Dismiss
Join GitHub today
GitHub is home to over 28 million developers working together to host
and review code, manage projects, and build software together.

Sign up

Building and running the projects in this repository will teach a developer how to understand and exploit the capabilities of the
Fluxtion toolset. The examples should be read in conjunction with the reference and tutorial documentation on the Fluxtion
website.
# fastdata # java # low-latency

209 commits 2 branches 9 releases 1 contributor GPL-3.0

Branch: master New pull request Find file Clone or download

gregv12 Update README.md Latest commit 63552d4 on Apr 27, 2017


Clone with HTTPS
Use Git or checkout with SVN using the web URL.
reference-core updating poms for branch'release/1.0.10' with non-snapshot versions a year ago
https://github.com/v12technology/fluxtion
reference-declarative-extended updating poms for branch'release/1.0.10' with non-snapshot versions a year ago

reference-declarative updating poms for branch'release/1.0.10' with non-snapshot versions a year ago
Open in Desktop Download ZIP
reference-fx updating poms for branch'release/1.0.10' with non-snapshot versions a year ago

reference-statemachine updating poms for branch'release/1.0.10' with non-snapshot versions a year ago

.gitignore FLUX - test replay files name change a year ago

COPYING FLUX empty commit a year ago

README.md Update README.md a year ago

pom.xml updating poms for branch'release/1.0.10' with non-snapshot versions a year ago

README.md

README
This repository holds code examples for use with the Fluxtion framework
Building and running the projects in this repository will help a developer understand and exploit the capabilities of the
Fluxtion toolset. The examples should be read in conjunction with the reference and tutorial documentation on the
Fluxtion website.
Current example release version 1.0.10
Current Fluxtion api release version 1.0.28
Current Fluxtion exectuable release version 1.0.19
Fluxtion has several applications: the examples demonstrate capabilities and functionality of each one:
fluxtion - The core fluxtion tool that generates a static event procssor(SEP).
fluxtion-declarative - Adds declarative functionality for constructing SEP's, supports aggregation, functional idioms,
windowing, logging and filtering.
fluxtion-declarative-extended - Adds bespoke text processing, math functions, logical operators and utilities.
fluxtion-statemachine - a statemachine generator powered by fluxtion core, leveraging Fluxtions's annotations.

How do I get set up?


This guide will step you through the process of running the reference-core example project. At the end of the guide is
configuration information to run all the examples in this project.

https://github.com/v12technology/fluxtion-examples 1/4
7/27/2018 GitHub - v12technology/fluxtion-examples: Building and running the projects in this repository will teach a developer how to understa…

Install Fluxtion Core Trial:


Download the latest trial version for you platform from dropbox, the following versions are available:
Windows installer
windows zip file - TBD
linux self extracting archive.
The download will be either an installation package or an archive, unpack/install as ncessary on the local machine.
Activating License
Fluxtion is a license based product so before running any examples the Fluxtion license must be activated.
Locate the install directory and run fluxtion.exe activate Q3WWS-QBQAY-75JEY-GG7UK-FPKIH, e.g. for windows:

c:\Program Files (x86)\V12 Technology\fluxtion-core-trial 0.1.4>fluxtion.exe activate Q3WWS-QBQAY-75JEY-GG7UK-FPKIH


attempting to activate license
08:47:11.903 license valid
License:C:\Users\myuser_name\.v12-fluxtion\trial-fluxtion-core.lic
Validation status : LICENSE_VALID
Activation status : ACTIVATION_COMPLETED
Expiry date : 18-Apr-2017
Product name : fluxtion
Product edition : core
Product version : trial
Product ID : fluxtion-core

Maven Integration:
To help use Fluxtion within the normal development-build process, a custom fluxtion plugin is provided.
Set the path to fluxtion executable in the maven pom.xml of a module, the poms are set up to use a property
substitution from ~/.m2/settings.xml, an example settings.xml:

<?xml version="1.0" encoding="UTF-8"?>


<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<profiles>
<profile>
<id>fluxtion</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<fluxtion.trial>C:\Program Files (x86)\V12 Technology\fluxtion-core-trial 0.1.4\fluxtion.exe</fluxtion
<fluxtion.declarative.ext.trial>C:\Program Files (x86)\V12 Technology\fluxtion-core-trial 0.1.4\fluxti
<fluxtion.declarative.trial>C:\Program Files (x86)\V12 Technology\fluxtion-core-trial 0.1.4\fluxtion.e
<fluxtion.statemachine.trial>C:\Program Files (x86)\V12 Technology\fluxtion-core-trial 0.1.4\fluxtion.
</properties>
</profile>
</profiles>

</settings>

If preferred the path to fluxtion executable can be hardcoded in the pom.xml for the example.

Running the core examples


Dependencies - none
Database configuration - none
Clone the examples and cd into the reference-core directory
To run tests execute mvn install, by default only one example generates, to generate all examples use mvn -Pbuild-all-
examples
The default build generates debug output, set <logDebug>true</logDebug> to false to reduce logging noise:

mvn clean install

cd G:\my_projects\fluxtion-master\fluxtion-opensource\examples\reference-core; "JAVA_HOME=C:\\Program Files\\Java\\jdk


Scanning for projects...
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-bom/0.1.22/fluxtion-bom-0.1.22.po

https://github.com/v12technology/fluxtion-examples 2/4
7/27/2018 GitHub - v12technology/fluxtion-examples: Building and running the projects in this repository will teach a developer how to understa…
Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-bom/0.1.22/fluxtion-bom-0.1.22.pom

------------------------------------------------------------------------
Building fluxtion.example :: ref.core 1.0.3-SNAPSHOT
------------------------------------------------------------------------
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-maven-plugin/1.0.4/fluxtion-maven

Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-maven-plugin/1.0.4/fluxtion-maven-
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-maven-plugin/1.0.4/fluxtion-maven

Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-maven-plugin/1.0.4/fluxtion-maven-
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-api/0.1.22/fluxtion-api-0.1.22.po

Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-api/0.1.22/fluxtion-api-0.1.22.pom
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/core-parent/0.1.22/core-parent-0.1.22.pom

Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/core-parent/0.1.22/core-parent-0.1.22.pom (
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/build-parent-root/0.1.22/build-parent-root

Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/build-parent-root/0.1.22/build-parent-root-
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-builder/0.1.22/fluxtion-builder-

Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-builder/0.1.22/fluxtion-builder-0.
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-api/0.1.22/fluxtion-api-0.1.22.ja
Downloading: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-builder/0.1.22/fluxtion-builder-0

Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-api/0.1.22/fluxtion-api-0.1.22.jar

Downloaded: https://mymavenrepo.com/repo/a6PnK93U9WA0ChAw8D8u/com/fluxtion/fluxtion-builder/0.1.22/fluxtion-builder-0.

--- maven-resources-plugin:2.6:resources (default-resources) @ learning ---


Using 'UTF-8' encoding to copy filtered resources.
Copying 2 resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ learning ---


Nothing to compile - all classes are up to date

--- fluxtion-maven-plugin:1.0.4:generate (example1) @ learning ---


C:\Program Files (x86)\V12 Technology\fluxtion-core-trial 0.1.4\fluxtion.exe -outDirectory G:\my_projects\fluxtion-mas
09:03:35.126 license valid
running trial version of fluxtion
09:03:37.022 Reflections took 1800 ms to scan 5 urls, producing 318 keys and 1582 values
09:03:39.696 Updated com.fluxtion.learning.example1.generated.TemperatureProcessor in G:\my_projects\fluxtion-master\f
...
... **DEBUG OUTPUT REMOVED**
...
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time: 13.003 s
Finished at: 2017-03-19T09:09:12+00:00
Final Memory: 11M/276M
------------------------------------------------------------------------

Configuartion for all examples


Running the other examples for different versions of fluxtion follows the same process: download the installer, activate license,
run mvn install. The table below sets out the bindings between trial keys and executables:

example windows executable key

reference-core fluxtion-core-trial.exe Q3WWS-QBQAY-75JEY-GG7UK-FPKIH

reference-declarative fluxtion-declarative-trial.exe XELFA-4HGBI-GMDXZ-3SFIG-XV63C

reference-declarative-extended fluxtion-declarative-extended-trial.exe T5YQN-GHSH4-P5BG9-RZLR9-QSFKX

reference-statemachine fluxtion-statemachine-trial.exe 93DS4-4XNKB-YY7SM-7V2P9-BGVQR

reference-fx fluxtion-fx-trial-0.1.8.exe 7DSBB-PBQFW-II7YM-R54YP-9IIBW


example windows executable key
example 64 bit Linux installer key

https://github.com/v12technology/fluxtion-examples 3/4
7/27/2018 GitHub - v12technology/fluxtion-examples: Building and running the projects in this repository will teach a developer how to understa…

example 64 bit Linux installer key

reference-core fluxtion-core-trial-0.1.5.sh Q3WWS-QBQAY-75JEY-GG7UK-FPKIH

reference-declarative fluxtion-declarative-trial-0.1.5.sh XELFA-4HGBI-GMDXZ-3SFIG-XV63C

reference-declarative-extended fluxtion-declarative-extended-trial-0.1.5.sh T5YQN-GHSH4-P5BG9-RZLR9-QSFKX

reference-statemachine fluxtion-statemachine-trial-0.1.5.sh 93DS4-4XNKB-YY7SM-7V2P9-BGVQR

Who do I talk to?


For any questions please send mails to info@v12technology.com
Ask questions on our forum.

https://github.com/v12technology/fluxtion-examples 4/4

You might also like