Commit 40afdf14 authored by ducanh-le's avatar ducanh-le
Browse files

Instantiated GTDServerWithReactor class. Ref #42

parent aadf1487
......@@ -6,6 +6,7 @@ import fr.alma.gtd.server.main.commande.Command;
import java.util.Date;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;
// TODO: this class should implement all main methods.
......@@ -16,10 +17,18 @@ import java.util.concurrent.BlockingQueue;
public class GTDServerWithReactor implements GTDServer {
// FIXME: This field should be instantiated
private static GTDServer instance = new GTDServerWithReactor();
private BlockingQueue<Command> arrivingCalls;
private GTDServerWithReactor() {
arrivingCalls = new LinkedBlockingQueue<Command>();
public static GTDServer getInstance() {
return instance;
public void createAccount(String username, String password, String pseudo, CallBack<String> callback) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment