Skip to content

Commit

Permalink
add: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
elblasco committed Jul 30, 2024
1 parent 4805148 commit 6a07d65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-javadoc-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
java-version: 21
target-folder: javadoc
project: gradle
#custom-command: javadoc -private -splitindex -use -author -version -link https://docs.oracle.com/en/java/javase/21/docs/api/
custom-command: javadoc -private -splitindex -use -author -version -link https://docs.oracle.com/en/java/javase/21/docs/api/ -d javadoc -sourcepath src/main/java src/main/java/it/unitn/disi/ds1/qtop/
14 changes: 7 additions & 7 deletions src/main/java/it/unitn/disi/ds1/qtop/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,21 +294,21 @@ private void onSynchronisation(@NotNull Synchronisation msg) {
/**
* Make the current Node become a coordinator.
*/
public void becomeCoordinator() {
private void becomeCoordinator() {
this.getContext().become(coordinatorBehaviour());
}

/**
* Make the current Node become a voter for the election process.
*/
public void becomeVoter() {
private void becomeVoter() {
this.getContext().become(voterBehaviour());
}

/**
* Make the current Node become a receiver, aka, a normal replica.
*/
public void becomeReceiver() {
private void becomeReceiver() {
this.getContext().become(createReceive());
}

Expand All @@ -317,7 +317,7 @@ public void becomeReceiver() {
*
* @return the Receive object
*/
public Receive voterBehaviour() {
private Receive voterBehaviour() {
return receiveBuilder().match(
CountDown.class,
this::onCountDown
Expand Down Expand Up @@ -862,7 +862,7 @@ private void onCrashRequest(@NotNull CrashRequest msg) {
*
* @return the Receive object
*/
public AbstractActor.Receive coordinatorBehaviour() {
private AbstractActor.Receive coordinatorBehaviour() {
return receiveBuilder().match(
StartMessage.class,
this::coordinatorOnStartMessage
Expand Down Expand Up @@ -909,7 +909,7 @@ public AbstractActor.Receive coordinatorBehaviour() {
*
* @param msg the init message
*/
public void coordinatorOnStartMessage(StartMessage msg) {
private void coordinatorOnStartMessage(StartMessage msg) {
this.heartBeat = new Cancellable[numberOfNodes];
this.quorum = (numberOfNodes / 2) + 1;
this.setGroup(msg);
Expand All @@ -926,7 +926,7 @@ public void coordinatorOnStartMessage(StartMessage msg) {
*
* @param msg request to make a vote
*/
public void coordinatorOnVoteResponse(@NotNull VoteResponse msg) {
private void coordinatorOnVoteResponse(@NotNull VoteResponse msg) {
Vote v = msg.vote();
int e = msg.epoch().e();
int i = msg.epoch().i();
Expand Down

0 comments on commit 6a07d65

Please sign in to comment.