haphut / transitdata-common

Common utilities for Apache Pulsar purposes of the HSL transitdata team

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HSL Transitdata Common-library

This codebase contains common code to be shared between Transitdata-projects.

Package transitdata.proto contains protobuf-schemas that are used to describe the data payloads within the Transitdata pipeline. Default files are already in this repository but in case the schema changes use following script to generate the files:

cd protos && ./generate-protos.sh

Configuration

Library contains package config which has tools to configure the application. By default the configuration file is read from resources inside the application jar-bundle from a file named environment.conf. You can override the path with env variable CONFIG_PATH which merges these two (if found).

This library also contains a file common.conf which can be used as template or even included as a baseline config to your application like this:

include "common.conf"
<your config here..>

More info can be found from Lightbend's github pages

Usage:

  • Build

    mvn clean package

  • Deploy to local artifactory, for other projects to access it

    mvn install

About

Common utilities for Apache Pulsar purposes of the HSL transitdata team

License:European Union Public License 1.2


Languages

Language:Java 98.5%Language:Shell 1.5%