|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mega.gasp.platform.utils.PropertiesReader
Class to read the properties files of GASP configuration.
Field Summary | |
private org.apache.log4j.Category |
cat
|
private java.lang.String |
conf_home
|
private java.io.InputStream |
is
|
private java.lang.String |
logs_home
|
private int |
minimalApplicationTimeout
|
private int |
minimalPlatformTimeout
|
private java.util.Properties |
prop
|
private java.net.URL |
url
|
Constructor Summary | |
PropertiesReader(java.lang.String path)
|
Method Summary | |
void |
checkLog4jLoggingPath()
Checks the path of logging from log4j.properties. |
byte |
getApplicationModel(int appID)
Returns the type of the application model. 0: automatic management (start, stop the game watching the number of player) 1: manual management (the proprietary of the application instance start, stop the aI) 2: mapcycle |
java.lang.String |
getApplicationPackage(int appID)
Returns the package name of the application to serve. |
int |
getApplicationTimeout(int appID)
Returns the application timeout. |
java.lang.String |
getDBUrl()
Returns the database url from platform.properties. |
int |
getPlatformTimeout()
Returns the platform timeout for sessions from platform.properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.net.URL url
private java.io.InputStream is
private java.util.Properties prop
private org.apache.log4j.Category cat
private java.lang.String conf_home
private java.lang.String logs_home
private final int minimalApplicationTimeout
private final int minimalPlatformTimeout
Constructor Detail |
public PropertiesReader(java.lang.String path)
Method Detail |
public java.lang.String getApplicationPackage(int appID)
appID
-
public int getApplicationTimeout(int appID)
appID
-
public java.lang.String getDBUrl()
public int getPlatformTimeout()
public void checkLog4jLoggingPath()
public byte getApplicationModel(int appID)
appID
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |