GithubHelp home page GithubHelp logo

assimbly / runtime Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 2.0 31.92 MB

Java & REST API's for creating and running integrations

License: Apache License 2.0

Java 97.83% Batchfile 0.09% Shell 0.14% XSLT 1.93%
integration camel flows adapter

runtime's Introduction

Runtime

Assimbly runtime runs

  • Integrations (Connectors, Flows, Routes)
  • Message brokers

The integration modules are build on top of Apache Camel and the broker modules are build on top of Apache ActiveMQ.

API

Each module in the runtime contains an API. The integration and broker module contain a Java API and the integrationRest and brokerRest contain a REST API. The API's are used by Assimbly Gateway, but can also be used in your own program.

Developing

The project is build with maven:

mvn clean install

prerequisites

build

The base can also be build with Maven:

mvn clean install

It's also possible to build only one module at the time. For this the same Maven command can be executed, but then from the directory that contains pom.xml of that module.

For example:

cd ./integration
mvn clean install

Usage

After building you can call the Java API from your Java application like this:

Integration integration = new CamelIntegration();
integration.start();

integration.setFlowConfiguration(flowId, mediatype, flowConfiguration);

integration.startFlow(flowID);

configuration

An integration flow is configured with key-values.

The key-values are stored in a Java Treemap Multiple flows in a connector are configured with a list of Treemaps.

The easiest way to generate the Treemap is to convert it from a DIL (Data Integration Language) file. XML, JSON and YAML are supported. Another possibility is using the GUI of Assimbly Gateway.

example

The following XML configuration prints 'Hello World!'.

Integration integration = new CamelIntegration("example", "file://C:/conf/helloworld.xml");

integration.start();
integration.startFlow("HelloWorld");

DIL

Assimbly uses the data integration language to create the integrations.

helloworld.xml

<flow>
    <name>HelloWorld</name>
    <steps>
        <step>
            <type>source</type>
            <uri>timer:foo</uri>
        </step>
        <step>
            <type>sink</type>
            <uri>print:Hello World!</uri>
        </step>
    </steps>
</flow>

For a longer XML example see the wiki.

management

The API simplifies common management tasks. The following lifecycle management actions are supported:

  • start
  • stop
  • restart
  • pause
  • resume

support

In case of questions or issues, you can create a Github issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.