Guergeiro / distributed-systems-2019

This repository contains our practical project for the class of distributed systems
https://cepos-e-mabecos.github.io/distributed-systems-2019/docs
MIT License
0 stars 2 forks source link

Updated Election mechanism #8

Closed Guergeiro closed 4 years ago

Guergeiro commented 4 years ago

Completly redesigned RMIServer.java to have a better feel and not so much spaghetti.

Added all mechanisms necessary to the PlaceManager.java in order to respond to RAFT.

Fixed missing throws in ReplicasManagerInterface.java.

Added ConsensusAppendRequest.java, ConsensusInterface.java and ConsensusVoteRequest.java to use in RAFT.

Guergeiro commented 4 years ago

CodeFactor found an issue: Empty statement.

It's currently on: src\main\RMIServer.java:122 Commit b892c8b2e63e65e9d1f12ae437d66391069142c5

Example of correct code

doSomething();
while (condition) {
    /** intentionally empty */
}
Guergeiro commented 4 years ago

A new issue #9 was created and will be solve in the future. It is not a priority. It can be fixed in the next sprint.