- Compile all source files using
javac *.java
- The ShardCoord is responsible for running all ShardRegion instances.
- Run RMI registry using
rmiregistry
. - Create a new terminal tab using Ctrl+Shift+T for each of the below commands.
- Run Server using
java Server
. Run Publisher usingjava Publisher
. Run Subscribers usingjava Subscriber
multiple times. You can subscribe to a topic in a server using "S topic_name" and unsubscribe using "U topic_name". To send to a particular topic from Publisher, use "topic_name message". - Alternatively, you can also create and run the test cases using
java Verifier
. This will create the test cases intests/input.txt
. It will also then run the test cases using our code and produce the output inlogs/
directory. It will also create expected_output for the test cases intests/expected_output/
directory. It will then diff the contents of files inlogs/
andtests/expected_output/
to see if correct result is being produced and will prompt if all test cases have passed or not.
-
Notifications
You must be signed in to change notification settings - Fork 1
dheeraj135/Publisher-Subscriber-Pattern
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Implementation of Publisher Subscriber message passing pattern and Master-Slave replication pattern.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published