|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tyrex.util.Configuration
Provides basic configuration for Tyrex components based on the tyrex.config configuration file. Several Tyrex services rely on this configuration file.
Field Summary | |
static java.lang.String |
CONFIG_SYSTEM_PROPERTY
The system property that specifies the configuration file name. |
static boolean |
console
Public member variable that determines whether Tyrex should emit information messages to the console. |
static java.lang.String |
COPYRIGHT
The copyright message. |
static java.lang.String |
FILE_NAME
The name of the server configuration file (tyrex.config). |
static java.lang.String |
PROPERTY_DOMAIN_FILES
Property that specified the name of domain configuration file(s) to load at startup. |
static java.lang.String |
PROPERTY_LOG_CONSOLE
Property specifying whether to enable console logging. |
static java.lang.String |
PROPERTY_LOG_VERBOSE
Property specifying whether to run in verbose mode. |
static java.lang.String |
PROPERTY_SECURE_RANDOM
Property that determines whether to use secure or standard random number generator. |
static java.lang.String |
PROPERTY_SYNCH_EVERY
Property that determines the number of unsynchronized cycles before the clock is synchronized. |
static java.lang.String |
PROPERTY_UNSYNCH_TICKS
Property that determines the number of clock ticks for each unsynchronized cycle. |
static java.lang.String |
PROPERTY_UUID_STATE_FILE
Property that specifies the name of the UUID state file. |
static java.lang.String |
TITLE
The product title. |
static java.lang.String |
VENDOR_NAME
The vendor name. |
static java.lang.String |
VENDOR_URL
The vendor URL. |
static boolean |
verbose
Public member variable that determines whether Tyrex should emit verbose information messages, which can be used for troubleshooting purposes. |
static java.lang.String |
VERSION
The version number. |
Constructor Summary | |
Configuration()
|
Method Summary | |
static boolean |
getBoolean(java.lang.String name)
|
static int |
getInteger(java.lang.String name)
|
static java.util.Properties |
getProperties()
|
static java.lang.String |
getProperty(java.lang.String name)
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defValue)
Returns a property from the default configuration file. |
static java.util.Random |
getRandom()
Returns a random number generator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PROPERTY_LOG_VERBOSE
public static final java.lang.String PROPERTY_LOG_CONSOLE
public static final java.lang.String PROPERTY_UNSYNCH_TICKS
public static final java.lang.String PROPERTY_SYNCH_EVERY
public static final java.lang.String PROPERTY_SECURE_RANDOM
public static final java.lang.String PROPERTY_UUID_STATE_FILE
public static final java.lang.String PROPERTY_DOMAIN_FILES
public static final java.lang.String VENDOR_NAME
public static final java.lang.String VENDOR_URL
public static final java.lang.String VERSION
public static final java.lang.String TITLE
public static final java.lang.String COPYRIGHT
public static final java.lang.String FILE_NAME
public static final java.lang.String CONFIG_SYSTEM_PROPERTY
FILE_NAME
will be
looked for in the classpath.
public static final boolean verbose
public static final boolean console
Constructor Detail |
public Configuration()
Method Detail |
public static java.lang.String getProperty(java.lang.String name, java.lang.String defValue)
name
- The property name
public static java.lang.String getProperty(java.lang.String name)
public static java.util.Properties getProperties()
public static boolean getBoolean(java.lang.String name)
public static int getInteger(java.lang.String name)
public static java.util.Random getRandom()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |