Skip to content

3zbumban/thro-vv

Repository files navigation

VV Praktikum

Praktikum01 Reaktives System

explanation

This is a Program that watches a directory for file changes and syncs them to a client.

usage

  • you have to start DirevtoryWatcher.java for the main file watching process
  • to run the client you have to start SyncClient.java
  • The DirectoryWatcher will watch the directory you have passed as a cli argument with the '-p' flag (long form: --path). If no Path was passed the programm will watch the current working directory.
  • you can type --help to see information about cli arguments
  • WARNING: Trailing Backslashes are not allowed! You have to pass a valid path as an argument.
    • example
right ✔ wrong ❌
"C:\bar\foo\src\main\resources" "C:\bar\foo\src\main\resources\"

settings

logger settings

The settings for the logger can be found under src\main\resources\log4j2.properties

  • to set the log level change the second property property.level = debug to the desired log level
  • the logfile can be found under logs\application.log

Praktikum02 Messaging

explanation

  • There are 3 Projekts:
    • accounting-service: This is a Program used by the Accountants to verify or forward Orders. The Programm listens on the OpenOrders channel.
    • customer-service: This is a Program used by the customers to do Orders. Orders are send to the OpenOrders channel.
    • message-bus: This is The message-bus library used by all the services.
    • team-lead: This is the Program used by the TeamLead to verify or decline Orders. The Programm listens on the NeedsApproval channel.

usage

accounting-service

  • run Main.java to start listening for orders.

customer-service

  • run Main.java with the argument -i/--interval to set an interval for generating random Orders
  • or: run Main.java without arguments tu use the default generating interval

message-bus

  • You can specify the Path to a rabbitMq.config.json if not the Programm looks on the current diretory.
rabbitMq.config.json

The file should look like this:

{
  "username": "username",
  "password": "password",
  "host": "host",
  "port": "port"
}

team-lead

  • run Main.java to start listening for orders.

settings

logger settings

The settings for the logger can be found under src\main\resources\log4j2.properties

  • to set the log level change the second property property.level = debug to the desired log level
  • the logfile can be found under logs\application.log

About

Java code for the THRO VV Module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages