RMI callback for manage the invitations

This commit is contained in:
Lorenzo Iovino 2017-06-19 19:32:54 +02:00
parent cedaf8f009
commit c54393c2b9
43 changed files with 2060 additions and 556 deletions

View file

@ -0,0 +1,32 @@
package constants;
/**
* Created by loke on 15/06/2017.
*/
public class Config {
public static String AuthServerURI = "localhost";
public static Integer AuthServerPort = 9999;
public static String GameServerURI = "localhost";
public static Integer GameServerPort = 10000;
public static String NotificationServerURI = "localhost";
public static Integer NotificationServerPort = 20000;
public static Integer NotificationServerStubPort = 5000;
public static String NotificationServerName ="notification";
public static String getNotificationServerURI(){
return "rmi://".concat(NotificationServerURI).concat(":").concat(NotificationServerPort.toString());
}
public static String getAuthServerURI(){
return "rmi://".concat(AuthServerURI).concat(":").concat(AuthServerPort.toString());
}
public static String getGameServerURI(){
return "tcp://".concat(GameServerURI).concat(":").concat(GameServerPort.toString());
}
}