Refactoring frontend + commons + aggiunta tempi corretti

This commit is contained in:
Lorenzo Iovino 2017-07-13 03:31:54 +02:00
parent 10595f5bab
commit 4760152e90
32 changed files with 676 additions and 558 deletions

View file

@ -1,7 +1,8 @@
package constants;
/**
* Created by loke on 15/06/2017.
* Author: Lorenzo Iovino on 15/06/2017.
* Description: Config
*/
public class Config {
@ -16,25 +17,13 @@ public class Config {
public static String ScoreMulticastServerURI = "226.226.226.226";
public static String NotificationServerURI = "localhost";
public static Integer NotificationServerPort = 20000;
public static Integer NotificationServerStubPort = 5000;
public static String NotificationServerName ="notification";
public static int timeoutGame = 10;
public static String getNotificationServerURI(){
return "rmi://".concat(NotificationServerURI).concat(":").concat(NotificationServerPort.toString());
}
public static int timeoutGame = 120;
public static String getAuthServerURI(){
return "rmi://".concat(AuthServerURI).concat(":").concat(AuthServerPort.toString());
}
public static String getGameServerURI(){
return "tcp://".concat(GameServerURI).concat(":").concat(GameServerPort.toString());
}
}