| java.lang.Object org.griphyn.vdl.util.ChimeraProperties
ChimeraProperties | public class ChimeraProperties (Code) | | A Central Properties class that keeps track of all the properties
used by Chimera. All other classes access the methods in this class
to get the value of the property. It access the VDSProperties class
to read the property file.
author: Jens-S. Vöckler author: Yong Zhao version: $Revision: 364 $ See Also: org.griphyn.common.util.VDSProperties |
Method Summary | |
public String | getDAXSchemaLocation() Gets the location of the DAX XML schema from properties, if available.
Please note that the schema location URL in the instance document
is only a hint, and may be overriden by the findings of this method.
a location pointing to a definition document of the XMLschema that can read DAX. | public File | getDataDir() Accessor to $PEGASUS_HOME/share. | public String | getDatabaseDriverName(String dbDriverPrefix) Gets then name of the database driver from the properties.
A specific match is preferred over the any match.
Parameters: dbDriverPrefix - is the database schema key name in theproperties file, which happens to be the pointer to the classto load. | public Properties | getDatabaseDriverProperties(String dbDriverPrefix) Obtains database driver specific properties.
Parameters: dbDriverPrefix - is the database driver property key prefixfor which to obtain properties. | public String | getDatabaseSchemaName(String dbSchemaPrefix) Gets the name of the database schema name from the properties.
Parameters: dbSchemaPrefix - is the database schema key name in theproperties file, which happens to be the pointer to the classto load. | public Properties | getDatabaseSchemaProperties(String dbSchemaPrefix) Obtains the database schema specific properties.
Parameters: dbSchemaPrefix - is the database schema key name in theproperties file a property set to be filled with schema specificproperties. | public String | getDatabaseURL(String dbDriverPrefix) Gets the Database URL from Properties file, the URL is a contact
string to the database. | public File | getLocalStateDir() Accessor to $PEGASUS_HOME/var. | public String | getPTCSchemaLocation() Helps the load database to locate the invocation record XML schema,
if available. | public String | getPTCSchemaName() Obtains the fully qualified class name of the PTC-implementing
database schema. | public String | getRCLocation() | public String | getReplicaCatalogName(String dbReplicaPrefix) Gets the name of the replica catalog implementating class from the
properties.
Parameters: dbReplicaPrefix - is the replica catalog class name in theproperties file. | public Properties | getReplicaCatalogProperties(String dbReplicaPrefix) Obtains all properties to handle the experimental replica catalog
interface.
Parameters: dbReplicaPrefix - is the prefix for the replica catalog'simplementation configuration. | public File | getSysConfDir() Accessor to $PEGASUS_HOME/etc. | public String | getTCLocation() | public String | getVDCSchemaName() Get the fully qualified class name of the VDC-implementing
database schema. | public String | getVDLSchemaLocation() Gets the location the VDLx XML schema from properties, if available.
Please note that the schema location URL in the instance document
is only a hint, and may be overriden by the findings of this method.
a location pointing to a definition document of the XMLschema that can read VDLx. | public String | getVDSHome() Accessor: Obtains the root directory of the VDS/Chimera runtime
system. | public String | getWFSchemaName() Obtains the fully qualified class name of the WF-implementing
database schema. | public static ChimeraProperties | instance() To get a reference to the the object. | public Properties | matchingSubset(String prefix) Extracts a specific property key subset from the known properties.
The prefix is removed from the keys in the resulting dictionary.
Parameters: prefix - is the key prefix to filter the properties by. | public void | setupLogging(Logging logger) |
DAX_SCHEMA_LOCATION | final public static String DAX_SCHEMA_LOCATION(Code) | | |
DBDRIVER_ALL_PREFIX | final public static String DBDRIVER_ALL_PREFIX(Code) | | |
IVR_SCHEMA_LOCATION | final public static String IVR_SCHEMA_LOCATION(Code) | | |
VDL_SCHEMA_LOCATION | final public static String VDL_SCHEMA_LOCATION(Code) | | Default values for schema locations.
|
getDAXSchemaLocation | public String getDAXSchemaLocation()(Code) | | Gets the location of the DAX XML schema from properties, if available.
Please note that the schema location URL in the instance document
is only a hint, and may be overriden by the findings of this method.
a location pointing to a definition document of the XMLschema that can read DAX. Result may be null, if such a documentis unknown or unspecified. See Also: org.griphyn.vdl.parser.DAXParser.DAXParser(String) |
getDataDir | public File getDataDir()(Code) | | Accessor to $PEGASUS_HOME/share. The files in this directory have a low
change frequency, are effectively read-only, can be shared via a
networked FS, and they are valid for multiple users.
the "share" directory of the VDS runtime system. |
getDatabaseDriverName | public String getDatabaseDriverName(String dbDriverPrefix)(Code) | | Gets then name of the database driver from the properties.
A specific match is preferred over the any match.
Parameters: dbDriverPrefix - is the database schema key name in theproperties file, which happens to be the pointer to the classto load. the database driver name, result may be null, if suchproperty is not specified. |
getDatabaseDriverProperties | public Properties getDatabaseDriverProperties(String dbDriverPrefix)(Code) | | Obtains database driver specific properties.
Parameters: dbDriverPrefix - is the database driver property key prefixfor which to obtain properties. a property set to be filled with driver specificproperties. May be null if no such properties specified. |
getDatabaseSchemaName | public String getDatabaseSchemaName(String dbSchemaPrefix)(Code) | | Gets the name of the database schema name from the properties.
Parameters: dbSchemaPrefix - is the database schema key name in theproperties file, which happens to be the pointer to the classto load. the database schema name, result may be null, if suchproperty is not specified. |
getDatabaseSchemaProperties | public Properties getDatabaseSchemaProperties(String dbSchemaPrefix)(Code) | | Obtains the database schema specific properties.
Parameters: dbSchemaPrefix - is the database schema key name in theproperties file a property set to be filled with schema specificproperties. May be null if no such properties specified. |
getDatabaseURL | public String getDatabaseURL(String dbDriverPrefix)(Code) | | Gets the Database URL from Properties file, the URL is a contact
string to the database. The URL contact string is removed from the
regular properties which are passed to the JDBC driver.
Parameters: dbDriverPrefix - is the database schema key name. the database url, result may be null , if thedriver URL is not specified. See Also: ChimeraProperties.getDatabaseDriverProperties(String) |
getLocalStateDir | public File getLocalStateDir()(Code) | | Accessor to $PEGASUS_HOME/var. The files in this directory have a high
change frequency, are effectively read-write, they reside on a
per-machine basis, and they are valid usually for a single user.
the "var" directory of the VDS runtime system. |
getPTCSchemaLocation | public String getPTCSchemaLocation()(Code) | | Helps the load database to locate the invocation record XML schema,
if available. Please note that the schema location URL in the
instance document is only a hint, and may be overriden by the
findings of this method.
a location pointing to a definition document of the XMLschema that can read DAX. Result may be null, if such a documentis unknown or unspecified. See Also: org.griphyn.vdl.parser.InvocationParser.InvocationParser(String) |
getPTCSchemaName | public String getPTCSchemaName()(Code) | | Obtains the fully qualified class name of the PTC-implementing
database schema.
the fully-qualified name of the class which implementsthe PTC according to properties, or null , if nosuch class exists. |
getRCLocation | public String getRCLocation()(Code) | | Get the rc.data file location, which is used by shell planner
|
getReplicaCatalogName | public String getReplicaCatalogName(String dbReplicaPrefix)(Code) | | Gets the name of the replica catalog implementating class from the
properties.
Parameters: dbReplicaPrefix - is the replica catalog class name in theproperties file. the replica catalog implementing class name, result may benull, if such property is not specified. |
getReplicaCatalogProperties | public Properties getReplicaCatalogProperties(String dbReplicaPrefix)(Code) | | Obtains all properties to handle the experimental replica catalog
interface.
Parameters: dbReplicaPrefix - is the prefix for the replica catalog'simplementation configuration. all properties, excluding the prefix itself, for the RC. |
getSysConfDir | public File getSysConfDir()(Code) | | Accessor to $PEGASUS_HOME/etc. The files in this directory have a low
change frequency, are effectively read-only, they reside on a
per-machine basis, and they are valid usually for a single user.
the "etc" directory of the VDS runtime system. |
getTCLocation | public String getTCLocation()(Code) | | Get the tc.data file location, which is used by shell planner
|
getVDCSchemaName | public String getVDCSchemaName()(Code) | | Get the fully qualified class name of the VDC-implementing
database schema. If no properties are configured, it returns
the file-based VDC-schema implementation.
the fully-qualified name of the class which implementsthe VDC according to properties. See Also: org.griphyn.vdl.dbschema.SingleFileSchema |
getVDLSchemaLocation | public String getVDLSchemaLocation()(Code) | | Gets the location the VDLx XML schema from properties, if available.
Please note that the schema location URL in the instance document
is only a hint, and may be overriden by the findings of this method.
a location pointing to a definition document of the XMLschema that can read VDLx. Result may be null, if such a documentis unknown or unspecified. See Also: org.griphyn.vdl.parser.VDLxParser.VDLxParser(String) |
getVDSHome | public String getVDSHome()(Code) | | Accessor: Obtains the root directory of the VDS/Chimera runtime
system.
the root directory of the VDS runtime system, as initiallyset from the system properties. |
getWFSchemaName | public String getWFSchemaName()(Code) | | Obtains the fully qualified class name of the WF-implementing
database schema.
the fully-qualified name of the class which implements theWF according to properties, or null , if no such classexists. |
matchingSubset | public Properties matchingSubset(String prefix)(Code) | | Extracts a specific property key subset from the known properties.
The prefix is removed from the keys in the resulting dictionary.
Parameters: prefix - is the key prefix to filter the properties by. a property dictionary matching the filter key. May bean empty dictionary, if no prefix matches were found. |
setupLogging | public void setupLogging(Logging logger)(Code) | | Set up logging
|
|
|