Skip to content

rockarxiv/stream-combiner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stream Combiner

Description

Stream Combiner is an application that allows you to create a combined stream. This stream combines / merges entries from all (original) individual stream producers.

Configuration

To configure Stream combiner you need to create yml file with the following configuration:

  1. consumerReadTimeout, consumerReadTimeoutUnits - the maximum time waiting for a response from consumer. If consumer won't answer it will be deleted from list.

  2. xmlConsumerConfigs - list of configurations with following properties:

    • host - host of server that consumer will connect
    • port - port on the server that consumer will connect
    • queueSize - count of messages that will be stored in application memory for every consumer

How To Run

XmlProducer

To run XmlProducer you need to:

* cd $projectRoot/Xml Producer --> where projectRoot is a root directory of Stream Combiner

* gradle run --args='$port $dataFilePath' --> where $port is port number that you want to run on, and $dataFilePath is a path to file that contains data you want to publish. [Example of dataFile](Xml Producer/src/main/resources/testData.txt)

Stream Combiner

To run the application you need to call:

gradle run --args='$configurationPath' --> where $configurationPath is path to your yml config file
  
  or

gradle clean jar --> this will create jar file in root directory of project
java -jar stream-combiner.jar $configurationPath --> where $configurationPath is path to your yml config file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages