|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable<java.lang.Object,java.lang.Object> java.util.Properties prefuse.util.PrefuseConfig
public class PrefuseConfig
Runtime configuration settings for the prefuse framework. Maintains a set of hardwired configuration settings that can be overrriden by creating a text proeprties file containing custom values. By default, prefuse will look for the file "prefuse.conf" in the current working directory for configuration name/value pairs. The framework can be instructed to look for a different file by putting the full path to the file into the "prefuse.config" System property (for example by using a -D flag at the Java runtime command line).
Some of the supported configuration properties include:
activity.threadPriority
- the thread priority of the
ActivityManager thread. The value should be between 1 and 10, with 5 being
the standard Java default. The default prefuse setting is 6.data.io.worker.threadPriority
- the thread priority of
asynchronous database worker threads. The default prefuse setting is 5
(same as the Java thread default).data.filter.optimizeThreshold
- the minimum number of items
that must be contained in a table for optimized query plans to be
considered. The default value is 300.util.logdir
- the directory in which to write prefuse log
files. The default is "null" which defaults logging output to standard
output.util.logfile
- the filename pattern to use for naming
prefuse log files. The default is "prefuse_log_%g.txt", where the %g
indicates a unique number for the log file.Application creators are welcome to add their own custom properties to the configuration files and use the PrefuseConfig instance to access those properties. This class is a singleton, accessed through a static accessor method.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Method Summary | |
---|---|
static java.lang.String |
get(java.lang.String key)
Get a prefuse configuration property. |
static boolean |
getBoolean(java.lang.String key)
Get a prefuse configuration property as a boolean. |
static PrefuseConfig |
getConfig()
Get the global PrefuseConfig instance. |
static double |
getDouble(java.lang.String key)
Get a prefuse configuration property as a double. |
static float |
getFloat(java.lang.String key)
Get a prefuse configuration property as a float. |
static int |
getInt(java.lang.String key)
Get a prefuse configuration property as an integer. |
static long |
getLong(java.lang.String key)
Get a prefuse configuration property as a long. |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static PrefuseConfig getConfig()
public static java.lang.String get(java.lang.String key)
key
- the name of the property to lookup
public static int getInt(java.lang.String key)
key
- the name of the property to lookup
public static long getLong(java.lang.String key)
key
- the name of the property to lookup
public static float getFloat(java.lang.String key)
key
- the name of the property to lookup
public static double getDouble(java.lang.String key)
key
- the name of the property to lookup
public static boolean getBoolean(java.lang.String key)
key
- the name of the property to lookup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |