Skip to content

Commit

Permalink
3.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
skin27 committed Jul 22, 2022
2 parents 8ea7e97 + cb93a95 commit 1d72cf5
Show file tree
Hide file tree
Showing 101 changed files with 825 additions and 10,470 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"java.configuration.updateBuildConfiguration": "disabled"
"java.configuration.updateBuildConfiguration": "disabled",
"java.jdt.ls.vmargs": "-XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx2G -Xms100m"
}
80 changes: 53 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
# Modules
# Runtime

These API's are meant to configure and manage Assimbly module. For example
a message broker.
Assimbly runtime runs

* Connector: connect endpoints
* Broker: message broker
* Integrations (Connectors, Flows) Routes)
* Message broker

Currently the API's are build on top of [Apache Camel](https://github.com/apache/camel) and [Apache ActiveMQ](https://github.com/apache/activemq).
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 integration modules are build on top of [Apache Camel](https://github.com/apache/camel) and the broker modules are build on top of [Apache ActiveMQ](https://github.com/apache/activemq).



## Configuration

A flow is configured with key-values. The key-values are stored in a [Java Treemap](https://beginnersbook.com/2013/12/treemap-in-java-with-example/)
An integration flow is configured with key-values.

The key-values are stored in a [Java Treemap](https://beginnersbook.com/2013/12/treemap-in-java-with-example/)
Multiple flows in a connector can be configure with a list of Treemaps.

The easiest way to generate the Treemap is to convert it from an file (XML, JSON and YAML are supported). Another possibility is using the
The easiest way to generate the Treemap is to convert it from a configuration file (XML, JSON and YAML are supported). Another possibility is using the
GUI of [Assimbly Gateway](https://github.com/assimbly/gateway).

## Management
Expand All @@ -26,26 +31,45 @@ The API simplifies common management tasks. The following lifecycle management a
* pause
* resume

# Developing

## Development
The project is build with maven (mvn clean install).

The project is build with maven (mvn install). After building you can call the API from your Java application like this:
# prerequisite

```java
Connector connector = new CamelConnector(flowID, configurationUri);
- JDK11+
- Maven
- [Assimbly Base](https://github.com/assimbly/base)

# 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:

connector.start();
connector.startFlow(flowID);
```
cd ./integration
mvn clean install
```


or
# Usage

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

```java
Connector connector = new CamelConnector();
connector.start();
Integration integration = new CamelIntegration();
integration.start();

integration.setFlowConfiguration(flowId, mediatype, flowConfiguration);

connector.setFlowConfiguration(flowId, mediatype, flowConfiguration);
connector.startFlow(flowID);
integration.startFlow(flowID);
```

## Example
Expand All @@ -54,19 +78,19 @@ The following XML configuration moves files from a one directory to another.

```java

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

connector.start();
connector.startFlow("filetofile");
integration.start();
integration.startFlow("filetofile");

```

conf.xml
```xml

<?xml version="1.0" encoding="UTF-8"?>
<connectors>
<connector>
<integrations>
<integration>
<id>1</id>
<name>default</name>
<type>ADAPTER</type>
Expand Down Expand Up @@ -107,9 +131,11 @@ conf.xml
<services/>
<headers/>
<environmentVariables/>
</connector>
</connectors>
</integration>
</integrations>

```

For a longer [XML example](https://github.com/assimbly/connector/wiki/XML-Configuration-Example) see the wiki.
For a longer [XML example](https://github.com/assimbly/connector/wiki/XML-Configuration-Example) see the wiki.


168 changes: 0 additions & 168 deletions baseComponentsModule/pom.xml

This file was deleted.

56 changes: 0 additions & 56 deletions baseModule/pom.xml

This file was deleted.

33 changes: 0 additions & 33 deletions baseModule/src/main/java/org/assimbly/util/BaseDirectory.java

This file was deleted.

0 comments on commit 1d72cf5

Please sign in to comment.