tyrex.util
Class Configuration
public final
class
Configuration
extends Object
Provides basic configuration for Tyrex components based on the
tyrex.config configuration file. Several Tyrex services
rely on this configuration file.
Version: $Revision: 1.9 $ $Date: 2004/04/30 06:09:06 $
Author: Assaf Arkin
Field Summary |
static boolean | console
Public member variable that determines whether Tyrex should emit
information messages to the console. |
static String | CONFIG_SYSTEM_PROPERTY
The system property that specifies the configuration file name. |
static String | COPYRIGHT
The copyright message. |
static String | FILE_NAME
The name of the server configuration file (tyrex.config). |
static String | PROPERTY_DOMAIN_FILES
Property that specified the name of domain configuration file(s)
to load at startup. |
static String | PROPERTY_LOG_CONSOLE
Property specifying whether to enable console logging.
|
static String | PROPERTY_LOG_VERBOSE
Property specifying whether to run in verbose mode.
|
static String | PROPERTY_SECURE_RANDOM
Property that determines whether to use secure or standard random
number generator. |
static String | PROPERTY_SYNCH_EVERY
Property that determines the number of unsynchronized cycles
before the clock is synchronized. |
static String | PROPERTY_UNSYNCH_TICKS
Property that determines the number of clock ticks for each
unsynchronized cycle. |
static String | PROPERTY_UUID_STATE_FILE
Property that specifies the name of the UUID state file.
|
static String | TITLE
The product title. |
static boolean | verbose
Public member variable that determines whether Tyrex should emit
verbose information messages, which can be used for troubleshooting
purposes. |
static String | VENDOR_NAME
The vendor name. |
static String | VENDOR_URL
The vendor URL. |
static String | VERSION
The version number. |
public static final boolean console
Public member variable that determines whether Tyrex should emit
information messages to the console. This variable is set from the
configuration file.
public static final String CONFIG_SYSTEM_PROPERTY
The system property that specifies the configuration file name. If this
system property is specified, it will be used to load the configuration
file. Otherwise, the configuration file
FILE_NAME will be
looked for in the classpath.
public static final String COPYRIGHT
The copyright message. This variable is read from the configuration file.
public static final String FILE_NAME
The name of the server configuration file (tyrex.config).
public static final String PROPERTY_DOMAIN_FILES
Property that specified the name of domain configuration file(s)
to load at startup. This value is a comma separated list of zero
or more file names. The name of this property is tyrex.domain.files.
public static final String PROPERTY_LOG_CONSOLE
Property specifying whether to enable console logging.
tyrex.log.console
public static final String PROPERTY_LOG_VERBOSE
Property specifying whether to run in verbose mode.
tyrex.log.verbose
public static final String PROPERTY_SECURE_RANDOM
Property that determines whether to use secure or standard random
number generator. This value is true or false. The name of this
property is tyrex.random.secure.
public static final String PROPERTY_SYNCH_EVERY
Property that determines the number of unsynchronized cycles
before the clock is synchronized. The value is an integer.
The name of this property is tyrex.clock.synchEvery.
public static final String PROPERTY_UNSYNCH_TICKS
Property that determines the number of clock ticks for each
unsynchronized cycle. The value is an integer, the percision is
milliseconds. The name of this property is tyrex.clock.unsynchicks.
public static final String PROPERTY_UUID_STATE_FILE
Property that specifies the name of the UUID state file.
The UUID state file is used to store the node identifier
and clock sequence. The name of this property is
tyrex.uuid.stateFile.
public static final String TITLE
The product title. This variable is read from the configuration file.
public static final boolean verbose
Public member variable that determines whether Tyrex should emit
verbose information messages, which can be used for troubleshooting
purposes. This variable is set from the configuration file.
public static final String VENDOR_NAME
The vendor name. This variable is read from the configuration file.
public static final String VENDOR_URL
The vendor URL. This variable is read from the configuration file.
public static final String VERSION
The version number. This variable is read from the configuration file.
public static boolean getBoolean(String name)
public static int getInteger(String name)
public static Properties getProperties()
public static String getProperty(String name, String defValue)
Returns a property from the default configuration file.
Parameters: name The property name default The property's default value
Returns: The property's value
public static String getProperty(String name)
public static Random getRandom()
Returns a random number generator. Depending on the configuration this is
either a secure random number generator, or a standard random number generator
seeded with the system clock.
Returns: A random number generator
Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.