This is a Program that watches a directory for file changes and syncs them to a client.
- you have to start
DirevtoryWatcher.javafor the main file watching process - to run the client you have to start
SyncClient.java - The
DirectoryWatcherwill 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\" |
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 = debugto the desired log level - the logfile can be found under
logs\application.log
- There are 3 Projekts:
- accounting-service: This is a Program used by the Accountants to verify or forward Orders.
The Programm listens on the
OpenOrderschannel. - customer-service: This is a Program used by the customers to do Orders.
Orders are send to the
OpenOrderschannel. - 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
NeedsApprovalchannel.
- accounting-service: This is a Program used by the Accountants to verify or forward Orders.
The Programm listens on the
- run
Main.javato start listening for orders.
- run
Main.javawith the argument-i/--intervalto set an interval for generating random Orders - or: run
Main.javawithout arguments tu use the default generating interval
- You can specify the Path to a
rabbitMq.config.jsonif not the Programm looks on the current diretory.
The file should look like this:
{
"username": "username",
"password": "password",
"host": "host",
"port": "port"
}- run
Main.javato start listening for orders.
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 = debugto the desired log level - the logfile can be found under
logs\application.log