Clients

Java EDC Extension

Integrating with Maven Repository

To use the Maven package from our repository, update your build.gradle.kts with the following repository configuration:

repositories {
    mavenCentral()
    maven {
        url = uri("https://maven.pkg.github.com/truzzt/mds-ap3")
        credentials {
            username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
            password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
        }
    }
}

This configuration includes the necessary Maven repository for our package and sets up authentication using either project properties or environment variables.

Setting Up Authentication

To access our public Maven repository, authentication is required. Please follow the detailed GitHub Packages with Apache Maven documentation for guidance on setting up authentication.

Adding the Dependency

Once the repository is added and authentication is configured, you can include the package in your dependencies:

dependencies {
    implementation("logging-house:logging-house-client:v1.1.0")
}

Environment Configuration

The logging-house-client relies on two key environment variables for configuration:

NameDefaultDescription
EDC_LOGGINGHOUSE_EXTENSION_ENABLEDfalseSet to true to enable the extension, or false to disable it.
EDC_LOGGINGHOUSE_LOG_URLnoneSpecify the URL of the Logging-House-Server (e.g., clearing.demo.truzzt.eu).
EDC_DATASOURCE_LOGGINGHOUSE_URLnoneSpecify the URL of the database (e.g., postgres://some-url).
EDC_DATASOURCE_LOGGINGHOUSE_USERnoneSpecify the user of the database.
EDC_DATASOURCE_LOGGINGHOUSE_PASSWORDnoneSpecify the password of the database.

Ensure these environment variables are set as per your requirements for optimal functionality of the client.

Advanced Environment Configuration

NameDefaultDescription
EDC_LOGGINGHOUSE_EXTENSION_FLYWAY_REPAIRfalseRecreates the flyway history tables, beafore applying the scripts.
EDC_LOGGINGHOUSE_EXTENSION_FLYWAY_CLEANfalseExecutes a clean on the database, before applying the scripts.
EDC_LOGGINGHOUSE_EXTENSION_WORKERS_MAX1Maximun number of workers created to handle the pending items.
EDC_LOGGINGHOUSE_EXTENSION_WORKERS_DELTA30Time in seconds, after the connector initializes, to the workers start to run.
EDC_LOGGINGHOUSE_EXTENSION_WORKERS_PERIOD10Time in seconds, between each workers processing.