huge rework, RAFT WORKING

This commit is contained in:
Daniel
2024-12-12 23:26:47 +02:00
parent 1ddec6a353
commit 8b5f755152
25 changed files with 375 additions and 625 deletions

View File

@@ -1,14 +1,13 @@
package io.github.lumijiez;
import io.github.lumijiez.app.NodeManager;
import io.github.lumijiez.raft.Raft;
public class Main {
public static final String HOST = System.getenv().getOrDefault("HOSTNAME", "localhost");
public static final int PORT = Integer.parseInt(System.getenv().getOrDefault("UDP_PORT", "8084"));
public static void main(String[] args) {
NodeManager manager = new NodeManager();
try {
Raft raft = new Raft();
Thread.currentThread().join();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();