Closed Guergeiro closed 4 years ago
To test this via another Java app, using #3 testing should be enough.
For me is just about the remove all replicas every 15s, but since we already found a way of fixing it and it's coming in forward enhancements, looks great to me.
Refers to #5
Changed UDPInterface to ComunicationInterface, since it's a better name.
Added ConsensusRole that defines the state of a replica into 3 categories: FOLLOWER, CANDIDATE, LEADER.
RMIServer.java handles most of the consensus mechanism. It isn't a pretty solution, but it works.
ReplicasManagerInterface was added to handle everything related to the replicas address storage. It can be called via RMI if needed.
Implemented missing interfaces on PlaceManager and, added synchronized methods to everything related to replicas memory access.