|
CFEngine API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.recommender.server.SystemProperties
SystemProperties loads, maintains, and provides accessors for all CFServer properties. Author: Daniel Lowd <dlowd@cs.orst.edu>
Constructor Summary | |
SystemProperties()
|
Method Summary | |
static boolean |
getBoolean(java.lang.String propName)
Get a property value as a boolean. |
static boolean |
getBoolean(java.lang.String propName,
boolean defaultValue)
Get a property value as a boolean. |
static float |
getFloat(java.lang.String propName)
Get a property value as a float. |
static float |
getFloat(java.lang.String propName,
float defaultValue)
Get a property value as a float. |
static int |
getInt(java.lang.String propName)
Get a property value as an int. |
static int |
getInt(java.lang.String propName,
int defaultValue)
Get a property value as an int. |
static java.lang.String |
getString(java.lang.String propName)
Get a property value as a string. |
static java.lang.String |
getString(java.lang.String propName,
java.lang.String defaultValue)
Get a property value as a string. |
static void |
loadProperties(java.lang.String filename)
Load all server properties from a file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SystemProperties()
Method Detail |
public static void loadProperties(java.lang.String filename)
filename
- path to a file containing the server propertiespublic static java.lang.String getString(java.lang.String propName, java.lang.String defaultValue)
propName
- defaultValue
-
public static java.lang.String getString(java.lang.String propName)
propName
-
public static boolean getBoolean(java.lang.String propName, boolean defaultValue)
propName
- defaultValue
-
public static boolean getBoolean(java.lang.String propName)
propName
- public static int getInt(java.lang.String propName, int defaultValue)
propName
- defaultValue
-
public static int getInt(java.lang.String propName)
propName
-
public static float getFloat(java.lang.String propName, float defaultValue)
propName
- defaultValue
-
public static float getFloat(java.lang.String propName)
propName
-
|
CFEngine API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |