up
This commit is contained in:
parent
8eab4d97c1
commit
ee230f911c
16 changed files with 438 additions and 483 deletions
|
|
@ -6,29 +6,29 @@ package constants;
|
|||
*/
|
||||
public class Config {
|
||||
|
||||
public static String AuthServerURI = "localhost";
|
||||
public static Integer AuthServerPort = 9999;
|
||||
public static String AuthServiceURI = "localhost";
|
||||
public static Integer AuthServicePort = 9999;
|
||||
|
||||
public static String GameServerURI = "localhost";
|
||||
public static Integer GameServerPort = 10000;
|
||||
public static String MessageServiceURI = "localhost";
|
||||
public static Integer MessageServicePort = 10000;
|
||||
|
||||
public static String WordsReceiverServerURI = "localhost";
|
||||
public static Integer WordsReceiverServerPort = 10001;
|
||||
public static String WordsReceiverServiceURI = "localhost";
|
||||
public static Integer WordsReceiverServicePort = 10001;
|
||||
|
||||
public static String ScoreMulticastServerURI = "226.226.226.226";
|
||||
public static String ScoreMulticastServiceURI = "226.226.226.226";
|
||||
|
||||
public static Integer NotificationServerPort = 20000;
|
||||
public static Integer NotificationServerStubPort = 30000;
|
||||
public static String NotificationServerName ="notification";
|
||||
public static Integer NotificationServicePort = 20000;
|
||||
public static Integer NotificationServiceStubPort = 30000;
|
||||
public static String NotificationServiceName ="notification";
|
||||
|
||||
public static String RedisServerURI = "localhost";
|
||||
public static String RedisServiceURI = "localhost";
|
||||
|
||||
public static int gameTimeout = 120; //2 minuti in sec
|
||||
public static int joinMatchTimeout = 7*1000*60; //7 minuti in millisec
|
||||
public static int sendWordsTimeout = 5*1000*60; //5 minuti in millisec
|
||||
|
||||
public static String getAuthServerURI(){
|
||||
return "rmi://".concat(AuthServerURI).concat(":").concat(AuthServerPort.toString());
|
||||
public static String getAuthServiceURI(){
|
||||
return "rmi://".concat(AuthServiceURI).concat(":").concat(AuthServicePort.toString());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue