Leader Election Pattern (#923)

* Fix issue #761: ThreadSafeDoubleCheckLocking.java: Instantiating by Reflection call will be successful if you do that firstly

* Create leader election module

* Create Interface of Instance and MessageManager

* Create implementations with token ring algorithm

* Change package structure.
Create basic message system.

* Implement heartbeat and heartbeat invoking message system

* Implement election message handler

* Add leader message handler

* Add main entry point

* Add comments

* Update README.md

* Fix checkstyle issue

* Add Unit Tests

* Add Unit Tests

* Add bully leader selection

* Change System.out to log print.
Add MIT license in each file.

* Add More java doc comments

* Add unit test

* Add unit tests
This commit is contained in:
Azureyjt
2019-10-08 23:29:59 +08:00
committed by Ilkka Seppälä
parent 41b8d80479
commit 90ea4506ca
22 changed files with 1719 additions and 0 deletions

View File

@ -176,7 +176,9 @@
<module>commander</module>
<module>typeobjectpattern</module>
<module>bytecode</module>
<module>leader-election</module>
<module>data-locality</module>
</modules>
<repositories>